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

mplot

Plot multiple growth curves


Description

Function to plot multiple growth curves indexed by subject id.

Usage

mplot(x, y, id, data = parent.frame(), subset = NULL, add = FALSE, ...)

Arguments

x

vector of x coordinates.

y

vector of y coordinates.

id

factor denoting subject levels.

data

optional dataframe containing x, y and id.

subset

optional logical defining a subset of rows in data.

add

optional logical defining whether the plot is pre-existing (TRUE) or new (FALSE).

...

Further graphical parameters (see par) may also be supplied as arguments, particularly background colour bg, character expansion cex, colour col, line type lty, line width lwd and character pch.

Details

The arguments x, y and id can be given as character strings. The par parameters can be functions of vector variables in data, e.g. to colour curves separately by id use: col = id.

Author(s)

Examples

mplot(age, height, id, heights, col=id)

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.