Description Usage Arguments Value Author(s) References Examples
View source: R/sites_by_species.R
A data.frame is returned as grid cells by species with values in each cell being the number of occurrences of each species. No null (all zero) species should be returned. The coordinates returned are the TOP-LEFT corner of the grid cell.
1 2 | sites_by_species(taxon, wkt, gridsize = 0.1, SPdata.frame = FALSE,
verbose = ala_config()$verbose)
|
taxon |
string: the identifier to get the species data from the ala biocache. E.g. "genus:Macropus". |
wkt |
string: Bounding area in Well Known Text (WKT) format. E.g. "POLYGON((118 -30,146 -30,146 -11,118 -11,118 -30))". |
gridsize |
numeric: size of output grid cells in decimal degrees. E.g. 0.1 (=~10km) |
SPdata.frame |
logical: should the output be returned as a SpatialPointsDataFrame of the sp package? |
verbose |
logical: show additional progress information? [default is set by ala_config()] |
A dataframe or a SpatialPointsDataFrame containing the species by sites data. Columns will include longitude, latitude, and each species present. Values for species are record counts (i.e. number of recorded occurrences of that taxon in each grid cell)
Atlas of Living Australia support@ala.org.au
http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/doc-files/WKT.html
1 2 3 4 5 6 7 | ## Not run:
# Eucalyptus in Tasmania based on a 0.1 degree grid
ss=sites_by_species(taxon='genus:Eucalyptus',wkt='POLYGON((144 -43,148 -43,148 -40,144 -40,144 -43))',gridsize=0.1,verbose=TRUE)
ss[,1:6]
# equivalent direct webservice call: POST http://spatial.ala.org.au/alaspatial/ws/sitesbyspecies?speciesq=genus:Eucalyptus&qname=data&area=POLYGON((144%20-43,148%20-43,148%20-40,144%20-40,144%20-43))&bs=http://biocache.ala.org.au/ws/&movingaveragesize=1&gridsize=0.1&sitesbyspecies=1
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.