Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 1.65 KB

README.md

File metadata and controls

54 lines (39 loc) · 1.65 KB

rgbif

About

This set of functions/package will access data from GBIF using their API methods.

See documentation the GBIF API here:
http://data.gbif.org/tutorial/services

Install

Install the version from CRAN:

install.packages("rgbif")
require(rgbif)

Install the development version using install_github within Hadley's devtools package.

install.packages("devtools")
require(devtools)

install_github("rgbif", "ropensci")
require(rgbif)

Note: Windows users have to first install Rtools.

Packages rgbif depends on

  • XML
  • RCurl (>= 1.6)
  • plyr
  • ggplot2
  • maps

Visualize occurrence data

# A single species
out <- occurrencelist(scientificname = 'Puma concolor', coordinatestatus = TRUE, maxresults = 100, latlongdf = T)
gbifmap(input = out) # make a map using vertmap

gbif_onespecies2

# Many species, colored by species on map
splist <- c('Accipiter erythronemius', 'Junco hyemalis', 'Aix sponsa', 'Buteo regalis')
out <- lapply(splist, function(x) occurrencelist(x, coordinatestatus = T, maxresults = 100, latlongdf = T))
gbifmap(out)

gbifmap_manyspecies