plot_map | R Documentation |
This fonction allows to plot the map created with the extract_map function. It is nessary to use the map_obj, a sf dataframe, contaning at least, a column density_km. The title and the legend can be personnalized.
plot_map(map_obj, legend = "Density (ind/km2)", title = "")
map_obj |
Dataframe. Sf map to plot. |
legend |
Character. Legend for the color gradient. |
title |
Character. Title. |
ggplot object. The study area with the gradient of density (ind/km2).
data(dataset_density) map <- extract_map(density_obj = dataset_density, N = 500, crs = 2154) plot_map(map_obj = map)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.