Plot discrete survival curves from a list of discrete survival probabilities by calling plot
with type='b'
.
plotSurvEst(
surv = list(),
xindx = NULL,
ylab = "",
xlab = "t",
ylim = c(0, 1),
legend.xyloc = "topright",
...
)
A list of vectors, each containing action-specific discrete survival probabilities over time.
A vector of indices for subsetting the survival vectors in surv
, if omitted all survival probabilities in each surv[[i]]
are plotted.
An optional title for y axis, passed to plot
.
An optional title for x axis, passed to plot
.
Optional y limits for the plot, passed to plot
.
Optional x and y co-ordinates to be used to position the legend.
Can be specified by keyword or as a named list with (x,y), uses the same convention as in graphics::xy.coords
.
Additional arguments passed to plot
.