View source: R/grid-attributes.R
vertexradius | R Documentation |
Great circle distances between face centers and vertices
vertexradius(x, degree = TRUE)
x |
( |
degree |
( |
A numeric
matrix that matches in structure with the @faces
slot of the provided grid x
.
Distances measured on each face are in the same row.
# example grid
g <- trigrid(3)
# all vertexradius
vertrads <- vertexradius(g)
# face average
averages <- apply(vertrads, 1, mean, na.rm=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.