Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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:

rows

a vector of row numbers corresponding to the selected points.

data

a subset of data consisting of rows rows, and columns id, x and y.

Author(s)

Examples

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

sitar

Super Imposition by Translation and Rotation Growth Curve Analysis

v1.2.0
GPL (>= 2)
Authors
Tim Cole [aut, cre] (<https://orcid.org/0000-0001-5711-8200>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.