plotclean | R Documentation |
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.
plotclean(
x,
y,
id = NULL,
data = parent.frame(),
n = length(x),
par.out = list(pch = 20),
...
)
x |
vector of x coordinates. |
y |
vector of y coordinates. |
id |
factor of subject levels indexing each growth curve. |
data |
optional dataframe containing |
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 |
plotclean
returns either a vector rows
(if data is not
specified) or a list:
rows |
a vector of row numbers corresponding to the selected points. |
data |
a subset of |
Tim Cole tim.cole@ucl.ac.uk
if (interactive()) plotclean(age, height, id, heights)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.