Skip to contents

getEOO calculates the area of the EOO polygon generated from makeEOO the provided data and returns an EOO class object or a list of these with defined summary and plot functions available.

Usage

getEOO(input_data, names_from = NA)

Arguments

input_data

Spatial object of an ecosystem or species distribution. Please use a CRS with units measured in metres.

names_from

name of the column containing ecosystem names. If missing all features will be analysed together. Only needed for vector data.

Value

An object of type EOO or a list of EOO objects that store the EOO polygon, its area, and its input_data

See also

Other EOO functions: getAreaEOO(), makeEOO()

Author

Nicholas Murray murr.nick@gmail.com, Calvin Lee calvinkflee@gmail.com

Examples

if (requireNamespace("terra", quietly = TRUE)) {
  ok <- try({
    m <- matrix(sample(1:4, 500, replace = TRUE, prob = c(4,1,1,6)), nrow=25, ncol=20)
     r1 <- terra::rast(m, crs = "+proj=utm +zone=55 +south +datum=WGS84 +units=m +no_defs")
    EOO <- getEOO(r1)
  }, silent = TRUE)
}