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)
}

Try the vegan package in your browser

Any scripts or data that you put into this service are public.

vegan documentation built on May 2, 2019, 5:51 p.m.