Description Usage Arguments Details Examples
Create a spatial points dataframe from a spocc search
1 |
x |
The resuslts of a spocc search called by |
coord_string |
A valid EPGS cooridate string from the sp package, the default is WSGS 84 |
just_coords |
Return data frame with specios names and provenance or just a spatial points object, which is the default. |
This function will return either a spatial points dataframe or spatial points object. Conversion to spatial points objects allows spocc searches to interact with other spatial data sources. More coordinate system codes can be found at the EPGS registry
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
### See points on a map
library("maptools")
library("spocc")
data(wrld_simpl)
plot(wrld_simpl[wrld_simpl$NAME == "United States", ], xlim = c(-70, -60))
out <- occ(query = "Accipiter striatus", from = c("vertnet", "gbif"),
limit = 50)
xx <- occ2sp(out, just_coords = TRUE)
points(xx, col = 2)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.