simcausal (version 0.2.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), ...)

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.
...
Additional arguments passed to plot.