autoplot.stateprobs | R Documentation |
Quickly plot state probabilities stored in a stateprobs
object.
## S3 method for class 'stateprobs' autoplot( object, labels = NULL, ci = FALSE, prob = 0.95, ci_style = c("ribbon", "line"), geom_alpha = 0.3, ... )
object |
A |
labels |
A list of named vectors containing the values and labels of
variables. The elements of each vector are the values of a variable and the
names are the labels. The names of the list are the names of the variables.
See the output returned by |
ci |
A logical value indicating whether confidence intervals should be
plotted. Default is |
prob |
A numeric scalar in the interval |
ci_style |
Style to use for the confidence interval if |
geom_alpha |
The opacity for the shaded confidence bands when
|
... |
Further arguments passed to and from methods. Currently unused. |
A ggplot
object.
If there are multiple patients/groups, then state probabilities are
averaged across patients/groups (using the weights in patient_wt
if available)
prior to plotting.
Psm
for an example.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.