Learn R Programming

metRology (version 0.9-28-1)

plot.d.ellipse: Plot data ellipses

Description

Plots a number of data ellipses specified by

Usage

# S3 method for d.ellipse
plot(x, col.ellipse = 1, lty.ellipse = 1, lwd.ellipse = 1, 
		fill = NA, density = NULL, angle = 45, add = FALSE, npoints = 100, 
		xlim = NA, ylim = NA, 
		prinax = FALSE, col.prinax = 1, lty.prinax = 1, lwd.prinax = 1, 
		xlab=NULL, ylab=NULL, ...)

Arguments

x

An object of class d.ellipse

col.ellipse, lty.ellipse, lwd.ellipse

Colour, line type and line width for the ellipse(s). Can be vectors, allowing different colour, line type etc. Recycled as necessary to length length(x).

fill, density, angle

Fill colour, line density and line angle for each ellipse in x. See polygon for details. Can be vectors. Recycled as necessary to length length(x).

add

If TRUE, ellipses are added to an existing plot. If FALSE a new plot is created.

npoints

Controls the number of points used to form each ellipse. See data.ellipse for details.

xlim, ylim

Plot limits. Ignored if add == FALSE

prinax

If TRUE (the default), the principal axes are drawn on the plot.

col.prinax, lty.prinax, lwd.prinax

Colour, line type and line width for principal axes.

xlab, ylab

Axis labels passed to plot if add == FALSE. Defaults to dimension names in x or, if those are NULL, to "X" and "Y".

Additional arguments, passed to plot if add == TRUE.

Value

The function is called for its side effect, which is the drawing of ellipses.

Details

A series of ellipses specified in x is plotted. The function is primarily used for adding ellipses to a Youden plot.

See Also

data.ellipse, youden.plot

Examples

Run this code
# NOT RUN {
data(chromium)
cov.Cr <- cov.dellipse(chromium)
dellipse.Cr <- data.ellipse(cov.Cr, plot=FALSE)
plot(dellipse.Cr)

# }

Run the code above in your browser using DataLab