View source: R/EOO_functions.R
getAreaEOO | R Documentation |
getAreaEOO
calculates the area of the EOO polygon generated from
makeEOO
the provided data
getAreaEOO(EOO.polygon, unit = "km")
EOO.polygon |
An object of class SpatVect, usually the output
from |
unit |
Character. Output unit of area. One of "m", "km", or "ha" |
The area of the EOO.polygon
in km2
Nicholas Murray murr.nick@gmail.com, Calvin Lee calvinkflee@gmail.com
Other EOO functions:
makeEOO()
library(terra)
crs.UTM55S <- '+proj=utm +zone=55 +south +ellps=WGS84 +datum=WGS84 +units=m +no_defs'
r1 <- rast(ifelse((volcano<130), NA, 1), crs = crs.UTM55S)
ext(r1) <- c(0, 6100, 0, 8700)
EOO.polygon <- makeEOO(r1)
EOO.area <- getAreaEOO(EOO.polygon)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.