A function to convert visits into a spatial object

spatialVisits(
  x,
  xyCols = c("centroidX", "centroidY"),
  dataCRS = "4326",
  radius = "medianDist"
)

Arguments

x

an object of class ‘data.frame’ from exploreVisits.

xyCols

a character vector with the column names for the coordinates. Default to c("centroidX","centroidY")

dataCRS

a character string or numeric with the original coordinate reference system (CRS). Default to 4326

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 "medianDist"

Value

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.

See also

Examples

# \donttest{ # create a visit-based data object from the original observation-based data library(sf) OB <- organizeBirds(bombusObsShort) visitStats<-exploreVisits(OB)
#> Analysing 765 visits...
#> Finished analysing 765 visits.
spV<-spatialVisits(visitStats) plot(spV$effort$geometry)
# }