ellipse {clusterfly}R Documentation

Create multivariate ellipse

Description

Randomly sample points from a probability contour of a multivariate normal

Usage

ellipse(data, npoints=1000, cl=0.95, mean=colMeans(data), cov=var(data), df=nrow(data))

Arguments

data data frame or matrix
npoints number of points to sample
cl proportion of density contained within ellipse
mean mean vector
cov variance-covariance matrix
df degrees of freedom used for calculating F statistic

Details

There are two ways to use this function. You can either supply a data set for which a multivariate normal ellipse will be drawn or you can supply the mean vector, covariance matrix and number of dimensions yourself.

Author(s)

Hadley Wickham <h.wickham@gmail.com>


[Package clusterfly version 0.2.2 Index]