plot_map: Plot map

View source: R/plot_map.R

plot_mapR Documentation

Plot map

Description

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.

Usage

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

Arguments

map_obj

Dataframe. Sf map to plot.

legend

Character. Legend for the color gradient.

title

Character. Title.

Value

ggplot object. The study area with the gradient of density (ind/km2).

Examples


data(dataset_density)

map <- extract_map(density_obj = dataset_density,
                   N = 500,
                   crs = 2154)

plot_map(map_obj = map)


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