Create default study areas for use with SpaDES modules

randomStudyArea(center = NULL, size = 10000, seed = NULL)

Arguments

center

SpatialPoints object specifying a set of coordinates and a projection. Default is an area in southern Alberta, Canada.

size

Numeric specifying the approximate size of the area in m^2. Default 1e4.

seed

Numeric indicating the random seed to set internally (useful for ensuring the same study area is produced each time).

Value

SpatVector

Examples

a <- randomStudyArea(seed = 123)
if (interactive()) {
  terra::plot(a)
}