Learn R Programming

sitar (version 1.0.9)

plotclean: Plot multiple growth curves to identify outliers

Description

A version of mplot to plot growth curves and identify outliers. When outliers are clicked on, and if id is specified, the corresponding growth curve is highlighted. If id is not specified the selected point is highlighted. Use right-click to exit.

Usage

plotclean(x, y, id = NULL, data = parent.frame(), n = length(x), par.out = list(pch = 20), ...)

Arguments

x
vector of x coordinates.
y
vector of y coordinates.
id
factor of subject levels indexing each growth curve.
data
optional dataframe containing x, y and id.
n
maximum number of points to be identified.
par.out
list of optional graphical parameters to control appearance of selected outlying points and lines.
...
Further graphical parameters (see par) may also be supplied as arguments for lines and points, particularly line type, lty, line width, lwd and color, col.

Value

plotclean returns either a vector rows (if data is not specified) or a list: specified) or a list:

Examples

Run this code

if (interactive()) plotclean(age, height, id, heights)

Run the code above in your browser using DataLab