ellipse {pliman} | R Documentation |
Confidence ellipse
Description
Produces a confidence ellipse that is an iso-contour of the Gaussian distribution, allowing to visualize a 2D confidence interval.
Usage
ellipse(
x,
conf = 0.95,
np = 100,
plot = TRUE,
fill = "green",
alpha = 0.3,
random_fill = TRUE
)
Arguments
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
|
Value
A matrix with coordinates of points sampled on the ellipse.
Note
Borrowed from Claude (2008), pp. 85
References
Claude, J. (2008) Morphometrics with R, Use R! series, Springer 316 pp.
Examples
library(pliman)
ellipse(contours)
[Package pliman version 2.1.0 Index]