View source: R/IdentifyBirdSubspecies.R
databaseToAssignedSubspecies | R Documentation |
databaseToAssignedSubspecies(
spp,
subsppList,
pointLimit,
dbToQuery,
quant = 0.95,
xmin = NULL,
xmax = NULL,
ymin = NULL,
ymax = NULL,
plotIt = F,
bgLayer = NULL,
outputDir,
datafile = NULL,
epsilon = 1e-06,
restrictNominate = F,
cleanup_nominate = T,
num_digits_latlong = 2,
...
)
spp |
Genus and species to query, as string |
subsppList |
Strings of subspecies to query |
pointLimit |
Maximum point limit to return for each database – see spocc::occ |
dbToQuery |
List of databases to search through – see spocc::occ |
quant |
quant for density, below which points are removed. E.g., if set to 0.95, removes 95 \itemxminMinimum longitude extent to clip rasters to \itemxmaxMaximum longitude extent to clip rasters to \itemyminMinimum latitute extent to clip rasters to \itemymaxMaximum latitude extent to clip rasters to \itemplotItWhether to generate plots \itembgLayerA background layer for generating plots \itemoutputDirWhat directory to output to \itemdatafileif already ran and saved output from spocc:occ, put file here – default NULL \itemepsilonParameter for anomaly detection |
This function is a wrapper for the package and takes a species with a list of subspecies, and then assigns points to subspecies. Points that have problems with assignment are listed as "suspect" and points without problems are listed as "good." Also returns polygons used to make subspecies assignments.
Env = raster::stack(list.files(path='~/wc2-5/',pattern="\\.bil$",full.names=T)) ext = raster::extent(c(-125,-60,10,50)) Env = raster::crop(Env, ext) bg = Env[[1]] phainopeplaNitens = databaseToAssignedSubspecies(spp="Phainopepla nitens", subsppList=c("nitens","lepida"), pointLimit=500,dbToQuery=c("gbif","bison","inat","ebird","ecoengine","vertnet"), quant=0.95,xmin=-125,xmax=-60,ymin=10,ymax=50,plotIt=T,bgLayer=bg, outputDir="~/project/") suspect_occurrences = phainopeplaNitens$loc_suspect, good_occurrences = phainopeplaNitens$loc_good, subspecies_polygons = phainopeplaNitens$pol
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.