A function to convert visits into a spatial object
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.
# \donttest{ # create a visit-based data object from the original observation-based data library(sf) OB <- organizeBirds(bombusObsShort) visitStats<-exploreVisits(OB)#>#># }