simcausal (version 0.5.0)

plotSurvEst: (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 surv, if omitted all survival probabilities in each surv[[i]] are plotted.
ylab
An optional title for y axis, passed to plot.
xlab
An optional title for x axis, passed to plot.
ylim
Optional y limits for the plot, passed to plot.
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 graphics::xy.coords.
...
Additional arguments passed to plot.