This function retrieve the locality data for one species in the mammalcol pacakage dataset, and returns a map using ggplot2 of the minicipios where the species has been recorded.

plotmunicip(species)

Arguments

species

A character string containing the name of one species present in Colombia to plot a map of presence by municipios

legend

A logical (TRUE or FALSE) to get the legend in the map when is TRUE, or not if it is FALSE.

Value

A ggplot2 map for the species.

Details

This function is still experimental and under construction.

This function download a municipio map from gadm under the hood.

The function does not allows fuzzy matching, so the specie name should be correct. It is advised to run first the search_mammalcol function.

Examples

library (mammalcol)
species <- "Tapirus pinchaque"
plotmunicip (species)
#> Error in plotmunicip(species): could not find function "plotmunicip"