Polyarea | R Documentation |
Calculates area of polygon
Polyarea(x)
x |
Polygon vertices: two-column numerical matrix or data frame |
Based on vegan::summary.ordihulls().
Numerical vector of length 1.
Alexey Shipunov
Squares
, Hulls
, Ellipses
x <- c(1:9, 8:1) # from ?polygon y <- c(1, 2*(5:3), 2, -1, 17, 9, 8, 2:9) Polyarea(cbind(x, y)) # numerical matrix Polyarea(data.frame(x, y)) # numerical data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.