View source: R/ridgeline_topography.R
ridgemap | R Documentation |
Using elevation data in the form of a raster, matrix, or data frame, create a map using ridgeline plotting.
ridgemap(
elev_data,
line_color = "white",
background_color = "gray10",
line_count = NULL,
y_scalar = 100,
scale_factor = 1,
line_weight = 0.5,
min_height = 0
)
elev_data |
Raster, matrix, or data frame. The elevation data. If a raster, the value in each cell must represent the elevation. If a matrix, the values must be the elevations and the rows and columns must correspond to the x and y coordinates, respectively. If a data frame, there must be the variables |
line_color |
Character string. The color for the ridgelines. Must be recognizable by |
background_color |
Character string. The color for the ridgelines. Must be recognizable by |
line_count |
Optional numeric. The number of ridgelines to draw. If this is |
scale_factor |
Numeric. The vertical scaling factor to apply to the elevations in the plot. Larger values result in more exaggerated topography. Defaults to |
line_weight |
Numeric. The thickness of the ridgelines. Used as the |
min_height. |
Numeric. The minimum height to display. Used by |
A ridgeline elevation map as a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.