Learn R Programming

Momocs (version 0.2-6)

coo.centsize: Calculates the centroid size of a list or matrix of coordinates.

Description

coo.centsize returns the centroid size of the shape, i.e. the square root of the sum of squared distances from each point to the centroid of the shape.

Usage

coo.centsize(coo)

Arguments

coo
A list or a matrix of coordinates.

Value

  • Returns the centroid size.

See Also

coo.centpos.

Examples

Run this code
data(bot)
coo <- bot@coo[[1]]
coo.centsize(coo)
coo.centsize(coo.scale(coo)) # by default coo.scale scales to centroid size.

Run the code above in your browser using DataLab