plot.cuRe {cuRe} | R Documentation |
Plot function for Flexible mixture cure model
Description
Plot function associated with the classes gfcm
and cm
Usage
## S3 method for class 'cuRe'
plot(x, newdata = NULL,
type = c("surv", "probcure", "survuncured", "hazarduncured", "cumhazuncured",
"densityuncured", "failuncured", "oddsuncured", "loghazarduncured", "hazard",
"density", "fail", "loghazard", "odds", "cumhaz"), time = NULL, xlim = NULL,
ylim = c(0, 1), xlab = "Time", ylab = NULL, col = 1, ci = T, add = F, ...)
Arguments
x |
Object of class |
newdata |
Data frame from which to compute predictions. If empty, predictions are made on the the data which the model was fitted on. |
type |
Character. Defines the desired scale to plot. See ?predict.gfcm for possible values. |
time |
Optional time points at which to compute predictions.
This argument is not used if type is |
xlim |
Limits of the x-axis. |
ylim |
Limits of the y-axis. |
xlab |
Label of the x-axis. Default is "Time". |
ylab |
Label of the y-axis. If |
col |
Colour of each line. |
ci |
Logical. If |
add |
Loglca. If |
... |
Further arguments passed to |
Value
A plot containing the predictions of each observation in newdata
.