inat_map: Plot iNaturalist observations

View source: R/inat_map.R

inat_mapR Documentation

Plot iNaturalist observations

Description

Plot observations from iNaturalist. You have the option of automatically plotting, or returning a ggplot map object that you can add layers onto.

Usage

inat_map(data, map = "usa", subregion = ".", plot = TRUE)

Arguments

data

data frame of iNaturalist observations.

map

the map area to plot, default is USA. See the same map argument in map_data for available areas.

subregion

the name of the subregion to plot. See the region argument in map_data for more details.

plot

a logical value. TRUE plots the map object and returns it, and FALSE returns a ggplot object that you can modify and plot later.

Value

A ggplot map object.

Examples

## Not run: 
m_obs <- get_inat_obs(taxon_name = "Ambystoma maculatum")
salamander_map <- inat_map(m_obs, plot = FALSE)
### Now we can modify the returned map
salamander_map + borders("state") + theme_bw()

## End(Not run)

rinat documentation built on Aug. 30, 2025, 5:07 p.m.