morphomapArea | R Documentation |
Shoelace formula to calculate the area of a closed outline
morphomapArea(p, delta = 0.1, method = "shoelace")
p |
matrix: kx2 matrix |
delta |
numeric: picture elements of adjustable side length |
method |
character: the user can choice to calculate the area applying the "shoelace" formula or discretizing the cross sections in dA areas (method = "delta") |
ar numeric: area
Antonio Profico, Luca Bondioli, Pasquale Raia, Paul O'Higgins, Damiano Marchi
extsec<-morphomapCircle(10,100)
#shoelace method
area<-morphomapArea(extsec, method="shoelace")
#delta method
area<-morphomapArea(extsec, method="delta",delta=0.01)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.