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

mammalmap(species, legend = TRUE)

Arguments

species

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

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

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" 
mammalmap(species, legend=FALSE)