Helper for spocc - a client for getting species occurrence data from many sources.
This package has utilities for:
- Making maps, with:
- base R
- ggplot2
- Leaflet
- GitHub Gists
- ...
We split this package off from spocc
to make spocc
lighter weight so that users that just want data don't have to install a bunch of other dependencies for mapping, etc.
See CONTRIBUTING.md
Install spoccutils
install.packages("spoccutils", dependencies = TRUE)
Or the development version from GitHub
devtools::install_github("ropensci/spoccutils")
library("spoccutils")
library("spocc")
spp <- c('Danaus plexippus', 'Accipiter striatus', 'Pinus contorta')
dat <- occ(query = spp, from = 'gbif', has_coords = TRUE)
map_leaflet(dat, dest = ".")
dat <- fixnames(dat)
map_gist(dat, color = c("#976AAE","#6B944D","#BD5945"))
ecoengine_data <- occ(query = 'Lynx rufus californicus', from = 'ecoengine', limit = 100)
map_ggmaps(ecoengine_data)
map_ggplot(ecoengine_data, "usa")
#> Error in occ2df(x): object 'ecoengine_data' not found
map_plot(dat, cex = 1, pch = 10)
- Please report any issues or bugs.
- License: MIT
- Get citation information for
spoccutils
in R doingcitation(package = 'spoccutils')