fc_plot {failCompare} | R Documentation |
Plotting failure time and sample survival function
fc_plot( time, surv, censorID, group = NULL, hist = T, surv_curv = T, main, ylim, xlim, ylab, xlab, ... )
time |
failure time (x axis) |
surv |
survival function (y axis) |
censorID |
binary or logical variable the same length as |
group |
grouping variable, limit of 3 |
hist |
logical show histogram of failure times |
surv_curv |
logical show histogram of failure times |
main |
title for scatterplot |
ylim |
y axis limits for survival plot, used to override default of c(0,1) |
xlim |
x axis limits for survival plot |
ylab |
y axis limits for survival plot, used to override default of c(0,1) |
xlab |
x axis limits for survival plot |
... |
additional argument passed to plot() |
plot of type "data" shown by default. For "residual" type plot showing (Kaplan-Meier estimates - parametric model fit), plot a singular model of class=fc_obj.
histogram of failure times and/or scatter plot of sample survival function.