spatialVisits: A function to convert visits into a spatial object

View source: R/exploreVisits.r

spatialVisitsR Documentation

A function to convert visits into a spatial object

Description

A function to convert visits into a spatial object

Usage

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

exploreVisits, organiseBirds

Examples


# 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)


Greensway/BIRDS documentation built on Oct. 19, 2023, 2:35 a.m.