Helper for making maps of species occurrence data, including for:
This package has utilities for making maps with:
- base R
- ggplot2
- ggplot2 with map layers - via
ggmap
pkg - Leaflet - via
leaflet
pkg - GitHub Gists - via
gistr
package
Install mapr
install.packages("mapr", dependencies = TRUE)
Or the development version from GitHub
devtools::install_github("ropensci/mapr")
library("mapr")
library("spocc")
spp <- c('Danaus plexippus', 'Accipiter striatus', 'Pinus contorta')
dat <- occ(query = spp, from = 'gbif', has_coords = TRUE, limit = 50)
map_leaflet(dat)
dat <- fixnames(dat)
map_gist(dat, color = c("#976AAE","#6B944D","#BD5945"))
x <- occ(query = 'Lynx rufus californicus', from = 'gbif', limit = 100)
map_ggmap(x)
map_ggplot(x, "usa")
map_plot(dat, cex = 1, pch = 10)
if that's your jam, though you might find rgbif
easier
library("dismo")
g <- gbif('Batrachoseps', 'luciae', geo = TRUE, end = 300)
map_leaflet(g, "lon", "lat")
- Please report any issues or bugs.
- License: MIT
- Get citation information for
mapr
in R doingcitation(package = 'mapr')
- Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.