Description Usage Arguments Value
This takes a pair of variables and creates the coordinates needed to plot a tolerance ellipse.
1 2 3 4 5 6 7 8 | create_ellipse(
data,
vars,
cov.type = cov.ogk,
cov.args = list(),
level = 0.95,
segments = 180
)
|
data |
a data frame. |
vars |
a character vector naming the two variables of interest. |
cov.type |
a covariance function, preferably from the cvreg, ICS, ICSNP, MNM, or rrcov packages. |
cov.args |
a list with named arguments to pass to cov.type. |
level |
The coverage level at which to draw an ellipse. The default is 0.95 for a 95 pct coverage of the data points. Must be greater than 0.50. |
segments |
The number of segments to be used in drawing the ellipse. |
a data frame consisting of coordinates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.