Plot Method for an 'acif' Object
plot.acif.RdCreates plots for cause-specific cumulative incidence functions (CIF), all-cause survival function, or both.
Arguments
- x
An object of class
acif. Typically the output of thecalc_ciffunction.- which
A character string specifying what to plot:
"cif"for cause-specific cumulative incidence functions (one panel per event type),"all_surv"for the all-cause survival function, or"both"for all-cause survival and cause-specific CIFs. Defaults to"cif".- col_line
Color for the lines. Defaults to
1(black).- lwd
Line width. Defaults to
2.- ...
Additional arguments passed to the base
plotfunction (e.g.,xlab,ylab,ylim,xlim).