R/summary.ordiellipse.R

### Centres and areas of plotted ellipses. The principal axes of the
### conic (oblique ellipse) are found from the eigenvalues of the
### covariance matrix.
`summary.ordiellipse` <-
    function(object, ...)
{
    cnts <- sapply(object, function(x) x$center)
    areas <- sapply(object,
                    function(x)
                    prod(sqrt(eigen(x$cov)$values)) * pi * x$scale^2)
    rbind(cnts, `Area` = areas)
}
pattakosn/Rworkshop documentation built on May 24, 2019, 8:22 p.m.