mplot(x, y, id, data = parent.frame(), subset = NULL, add = FALSE, ...)
x
, y
and id
.data
.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
.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
.
y2plot
mplot(age, height, id, heights, col=id)
Run the code above in your browser using DataLab