search_gbif_data: Function to search and download gbif data

View source: R/search_gbif_data.R

search_gbif_dataR Documentation

Function to search and download gbif data

Description

Searchs gbif data using the function occ from the spocc package

Usage

search_gbif_data(
  genus,
  species,
  occlim = 10000,
  writeFile = FALSE,
  leafletplot = FALSE,
  showClusters = FALSE,
  ...
)

Arguments

genus

Species genus

species

Species name

occlim

Occurrence data search limit.

writeFile

Write gibif data into a csv

leafletplot

Logical, if TRUE the records will be plotted on a leaflet map.

showClusters

Logical. Display geographic cluster on the leaflet map.

...

Pass arguments to the function occ from spocc

Details

Note that this function is for exploration proposes. If you want to use GBIF data in publications you should generate and cite DOI information according to this

Value

Returns a data.frame with coordinate data from species

Examples

## Not run: 
# Species genus
genus <- "ambystoma"
# Species name
species <- "tigrinum"
# GBIF search
ambystoma_tigrinum <- ntbox::search_gbif_data(genus,species,
                                       occlim=100,
                                       writeFile=FALSE)
head(ambystoma_tigrinum[,1:5])

## End(Not run)


luismurao/ntbox documentation built on May 9, 2024, 8:24 p.m.