Map species occurrence data
R HTML Makefile
Permalink
Failed to load latest commit information.
R change viz spelling for cran gods Nov 5, 2016
data added eg datasets and man files for them, added egs that run on check Nov 4, 2016
inst reran vignette Nov 4, 2016
man-roxygen removed old internal fxns, bumped dev version Jan 12, 2016
man change viz spelling for cran gods Nov 5, 2016
tests
vignettes reran vignette Nov 4, 2016
.Rbuildignore dont import some methods, namespaing their calls Nov 4, 2016
.gitignore
.travis.yml travis fixes Nov 4, 2016
CONDUCT.md added code of conduct Jan 7, 2016
CONTRIBUTING.md remove references to spoccutils, fix params, fix tests Jan 10, 2016
DESCRIPTION change viz spelling for cran gods Nov 5, 2016
LICENSE update year in license file Jan 12, 2016
Makefile remove references to spoccutils, fix params, fix tests Jan 10, 2016
NAMESPACE dont import some methods, namespaing their calls Nov 4, 2016
NEWS.md fixed up automatic color picking for leaflet and base maps fxns Nov 4, 2016
README.Rmd readme update May 1, 2016
README.md readme update May 1, 2016
appveyor.yml update appveyor with slack notification Feb 15, 2016
cran-comments.md cran comment fix Nov 4, 2016
mapr.Rproj chagne rproj file name Jan 7, 2016

README.md

mapr

Build Status Build status codecov.io rstudio mirror downloads

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

Installation

Install mapr

install.packages("mapr", dependencies = TRUE)

Or the development version from GitHub

devtools::install_github("ropensci/mapr")
library("mapr")
library("spocc")

Make maps

Leaflet

spp <- c('Danaus plexippus', 'Accipiter striatus', 'Pinus contorta')
dat <- occ(query = spp, from = 'gbif', has_coords = TRUE, limit = 50)
map_leaflet(dat)

leafletmap

Github gist

dat <- fixnames(dat)
map_gist(dat, color = c("#976AAE","#6B944D","#BD5945"))

gistmap

ggplot2 family maps

ggmaps

x <- occ(query = 'Lynx rufus californicus', from = 'gbif', limit = 100)
map_ggmap(x)

ggmaps

ggplot

map_ggplot(x, "usa")

ggplot2

Base R plots

map_plot(dat, cex = 1, pch = 10)

basremap

via dismo

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")

dismomap

Meta

  • Please report any issues or bugs.
  • License: MIT
  • Get citation information for mapr in R doing citation(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.

ropensci_footer