Description Usage Arguments Value Examples
The function get_species_data draws species occurrence data from GBIF. get_species_data takes in a species name (a vector containing genus and species name) and returns a dataframe containing presence data (including longitudes and latitudes) for the specified species drawn from GBIF.
1 | get_species_data(species_name)
|
species_name |
a vector containing genus and species name |
a dataframe of presence data for the specified species
1 2 3 4 5 6 7 8 9 10 11 | # example: plot mosquito species presence data
mosquito_presence <- get_species_data(c("aedes", "aegypti"))
mosquito_location <- mosquito_presence[, c("lon", "lat")]
# install.packages("maptools")
library(maptools)
data(wrld_simpl)
plot(wrld_simpl)
points(mosquito_location, col='blue', cex=0.5)
title("Aedes Aegypti Observations")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.