View source: R/plot.jointdata.R
plot.jointdata | R Documentation |
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, ...)
x |
object of class |
Y.col |
column number, or column name, of longitudinal variable to be
plotted. Defaults to |
type |
the type of line to be plotted, see |
xlab |
a title for the x-axis, see |
xlim, ylim |
numeric vectors of length 2, giving the x and y coordinates
ranges, see |
main |
an overall title for the plot; see |
pty |
a character specifying the type of plot region to be used, see
|
... |
other graphical arguments; see |
A graphical device with a plot for longitudinal data.
Ines Sousa
lines
and points
.
data(heart.valve) heart.surv <- UniqueVariables(heart.valve, var.col = c("fuyrs", "status"), id.col = "num") heart.long <- heart.valve[, c(1, 4, 5, 7, 8, 9, 10, 11)] heart.jd <- jointdata(longitudinal = heart.long, survival = heart.surv, id.col = "num", time.col = "time") plot(heart.jd, Y.col = "grad", col = "grey")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.