ropensci/mapr


Map species occurrence data

https://docs.ropensci.org/mapr

License: Other

Language: R

Keywords: biodiversity, ggplot2, leaflet, map, mapping, r, r-package, rstats, spocc


mapr

Build Status Build status cran checks codecov.io rstudio mirror downloads cran version

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, size = 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 = "lon", lat = "lat", name = "scientificName")

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

Project Statistics

Sourcerank 7
Repository Size 2.35 MB
Stars 34
Forks 5
Watchers 14
Open issues 3
Dependencies 14
Contributors 4
Tags 5
Created
Last updated
Last pushed

Top Contributors See all

Scott Chamberlain graceli8 Jeroen Ooms Karthik Ram

Packages Referencing this Repo

spoccutils
Utilities for Use with 'spocc'
Latest release 0.1.0 - Published - 34 stars
mapr
Visualize Species Occurrence Data
Latest release 0.4.0 - Updated - 34 stars

Recent Tags See all

v0.4.0 March 21, 2018
v0.3.4 April 11, 2017
v0.3.0 November 05, 2016
v0.2.0 January 28, 2016
v0.1.0 July 06, 2015

Something wrong with this page? Make a suggestion

Last synced: 2019-10-11 19:18:44 UTC

Login to resync this repository