
Export individual SVG files for each ridgeline
Source:R/export_ridgeline_svgs.R
export_ridgeline_svgs.Rd
Creates separate SVG files for each ridgeline slice, maintaining the same scaling and proportions as plot_ridgelines().
Usage
export_ridgeline_svgs(
elevation = NULL,
output_dir = "export",
n_lines = 30,
scale_factor = 10,
line_color = "black",
fill_color = NULL,
linewidth = 0.5,
width = 800,
height = 200,
closed = TRUE
)
Arguments
- elevation
A raster object containing elevation data, as returned by get_elevation()
- output_dir
Directory where SVG files will be saved (default: "export")
- n_lines
Number of ridgelines to generate (default: 30)
- scale_factor
Scaling factor for the height of ridgelines (default: 10)
- line_color
Color of the ridgelines (default: "black")
- fill_color
Color to fill closed shapes (default: same as line_color). Only used when closed = TRUE
- linewidth
Width of the ridgelines (default: 0.5)
- width
SVG width in pixels (default: 800)
- height
SVG height in pixels (default: 200)
- closed
Logical; if TRUE, creates closed shapes by adding a baseline (default: FALSE)