plot.cuminc {cmprsk} R Documentation

## Create Labeled Cumulative Incidence Plots

### Description

Plot method for cuminc. Creates labeled line plots from appropriate list input, for example, the output from cuminc().

### Usage

## S3 method for class 'cuminc'
plot(x, main=" ", curvlab, ylim=c(0, 1), xlim, wh=2,
xlab="Years",  ylab="Probability", lty=1:length(x), color=1, lwd=par('lwd'),
...)


### Arguments

 x a list, with each component representing one curve in the plot. Each component of x is itself a list whose first component gives the x values and 2nd component the y values to be plotted. Although written for cumulative incidence curves, can in principle be used for any set of lines. main the main title for the plot. curvlab Curve labels for the plot. Default is names(x), or if that is missing, 1:nc, where nc is the number of curves in x. ylim yaxis limits for plot xlim xaxis limits for plot (default is 0 to the largest time in any of the curves) wh if a vector of length 2, then the upper right coordinates of the legend; otherwise the legend is placed in the upper right corner of the plot xlab X axis label ylab y axis label lty vector of line types. Default 1:nc (nc is the number of curves in x). For color displays, lty=1, color=1:nc, might be more appropriate. If length(lty)

### Value

No value is returned.

### See Also

cuminc`

[Package cmprsk version 2.2-11 Index]