create_ellipse: Create coordinates for a tolerance ellipse

Description Usage Arguments Value

View source: R/ellipse.R

Description

This takes a pair of variables and creates the coordinates needed to plot a tolerance ellipse.

Usage

1
2
3
4
5
6
7
8
create_ellipse(
  data,
  vars,
  cov.type = cov.ogk,
  cov.args = list(),
  level = 0.95,
  segments = 180
)

Arguments

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.

Value

a data frame consisting of coordinates.


abnormally-distributed/cvreg documentation built on May 3, 2020, 3:45 p.m.