spatialVisits: A function to convert visits into a spatial object

Description Usage Arguments Value See Also Examples

View source: R/exploreVisits.r

Description

A function to convert visits into a spatial object

Usage

1
2
3
4
5
6
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

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)

BIRDS documentation built on June 27, 2021, 1:06 a.m.