cov2Ellipse | R Documentation |
Constructs an ellipse from a covariance matrix.
cov2Ellipse(cov, center, scale = 1, n = 151)
cov |
the 2-dimenstional covariance matrix, representing x and y. |
center |
the means of x and y. |
scale |
the size of the ellipse in units of standard deviation. |
n |
the number of points in the returned data. |
A list containing the x- and y-coordinates of the ellipse.
dataEllipse
# make a few points on a unit circle TMP <- cov2Ellipse(matrix(c(1,0,0,1), ncol=2), c(0,0), n=5) # Pretty print the data lapply(TMP, zapsmall)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.