inat_map | R Documentation |
Plot observations from iNaturalist. You have the option of automatically plotting, or returning a ggplot map object that you can add layers onto.
inat_map(data, map = "usa", subregion = ".", plot = TRUE)
data |
data frame of iNaturalist observations. |
map |
the map region to plot, you can find full documentation in the |
subregion |
the name of the subregion to plot, see full documentation in the |
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. |
A ggplot map object.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.