plot_obs | R Documentation |
Plot simulated individuals This function allows to plot the simulated individuals obs_obj on the map with density information. It is nessary to use the map_obj, a sf dataframe, contaning at least, a colums density_km. The title and the legend can be personnalized.
plot_obs(obs_obj, map_obj, legend = "Density (ind/km2)", title = "")
obs_obj |
sf dataframe. Individuals simulated with their coordinates. |
map_obj |
sf dataframe. Map of the study area with a density column density_km. |
legend |
Character. Legend. |
title |
Character. Title. |
ggplot object. Study area with the simulates individuals and the density color gradient.
data(dataset_map) ind <- simulate_ind(map_obj = dataset_map, crs = 2154) plot_obs(obs_obj = ind, map_obj = dataset_map)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.