plotSurvEst {simcausal} | R Documentation |
(EXPERIMENTAL) Plot Discrete Survival Function(s)
Description
Plot discrete survival curves from a list of discrete survival probabilities by calling plot
with type='b'
.
Usage
plotSurvEst(
surv = list(),
xindx = NULL,
ylab = "",
xlab = "t",
ylim = c(0, 1),
legend.xyloc = "topright",
...
)
Arguments
surv |
A list of vectors, each containing action-specific discrete survival probabilities over time. |
xindx |
A vector of indices for subsetting the survival vectors in |
ylab |
An optional title for y axis, passed to |
xlab |
An optional title for x axis, passed to |
ylim |
Optional y limits for the plot, passed to |
legend.xyloc |
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 |
... |
Additional arguments passed to |
[Package simcausal version 0.5.6 Index]