View source: R/utils_landmarks.R
ellipse | R Documentation |
Produces a confidence ellipse that is an iso-contour of the Gaussian distribution, allowing to visualize a 2D confidence interval.
ellipse(
x,
conf = 0.95,
np = 100,
plot = TRUE,
fill = "green",
alpha = 0.3,
random_fill = TRUE
)
x |
A |
conf |
The confidence level. Defaults to |
np |
Number of sampled points on the ellipse. |
plot |
Create a plot? Defaults to |
fill |
The color to fill the ellipse. Defaults to |
alpha |
The alpha value to define the opacity of ellipse. Defaults to
|
random_fill |
Fill multiple ellipses with random colors? Defaults to
|
A matrix with coordinates of points sampled on the ellipse.
Borrowed from Claude (2008), pp. 85
Claude, J. (2008) Morphometrics with R, Use R! series, Springer 316 pp.
library(pliman)
ellipse(contours)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.