Description Usage Arguments Value See Also Examples
View source: R/exploreVisits.r
A function to convert visits into a spatial object
1 2 3 4 5 6 | spatialVisits(
x,
xyCols = c("centroidX", "centroidY"),
dataCRS = "4326",
radius = "medianDist"
)
|
x |
an object of class ‘data.frame’ from exploreVisits. |
xyCols |
a character vector with the column names for the coordinates.
Default to |
dataCRS |
a character string or numeric with the original
coordinate reference system (CRS). Default to |
radius |
either a character string with the name of the column
containing the radius of the visit circle, or a numeric vector with its value
in meters. Default to |
a list with the centroids and a the effort circles. Note that when plotted directly effort circles may not look like circles in the returned (Pseudo-Mercator) projection.
1 2 3 4 5 6 | # create a visit-based data object from the original observation-based data
library(sf)
OB <- organizeBirds(bombusObsShort)
visitStats<-exploreVisits(OB)
spV<-spatialVisits(visitStats)
plot(spV$effort$geometry)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.