Learn R Programming

rgbif (version 3.8.1)

gbif_photos: View photos from GBIF.

Description

View photos from GBIF.

Usage

gbif_photos(input, output = NULL, which = "table", browse = TRUE)

Arguments

input

Input output from occ_search

output

Output folder path. If not given uses temporary folder.

which

One of map or table (default).

browse

(logical) Browse output (default: TRUE)

BEWARE

The maps in the table view may not show up correctly if you are using RStudio

Details

The max number of photos you can see when which="map" is ~160, so cycle through if you have more than that.

Examples

Run this code
if (FALSE) {
res <- occ_search(mediaType = 'StillImage', limit = 100)
gbif_photos(res)
gbif_photos(res, which='map')

res <- occ_search(scientificName = "Aves", mediaType = 'StillImage',
  limit=150)
gbif_photos(res)
gbif_photos(res, output = '~/barfoo')
}

Run the code above in your browser using DataLab