Plot longitudinal data of an object of class jointdata, for a longitudinal variable. It is possible to plot all the subjects in the data set, or just a selected subset. See subset.jointdata.
## S3 method for class 'jointdata'plot(x, Y.col, type, xlab, xlim =NULL, ylim =NULL, main =NA, pty,...)
Arguments
x: object of class jointdata.
Y.col: column number, or column name, of longitudinal variable to be plotted. Defaults to Y.col = NA, plotting all longitudinal variables.
type: the type of line to be plotted, see plot
for further details.
xlab: a title for the x-axis, see title.
xlim, ylim: numeric vectors of length 2, giving the x and y coordinates ranges, see plot.window for further details.
main: an overall title for the plot; see title.
pty: a character specifying the type of plot region to be used, see par for details.
...: other graphical arguments; see plot.
Returns
A graphical device with a plot for longitudinal data.