plot_obs: Plot simulated individuals This function allows to plot the...

View source: R/plot_obs.R

plot_obsR 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.

Description

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.

Usage

plot_obs(obs_obj, map_obj, legend = "Density (ind/km2)", title = "")

Arguments

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.

Value

ggplot object. Study area with the simulates individuals and the density color gradient.

Examples


data(dataset_map)

ind <- simulate_ind(map_obj = dataset_map,
                    crs = 2154)

plot_obs(obs_obj = ind,
         map_obj = dataset_map)


maudqueroue/intercali documentation built on Oct. 8, 2022, 2:09 p.m.