View source: R/strategy_print.R
plot.run_model | R Documentation |
Various plots for Markov models.
## S3 method for class 'run_model'
plot(
x,
type = c("counts", "ce", "values"),
panels = c("by_strategy", "by_state", "by_value"),
values = NULL,
strategy = NULL,
states = NULL,
free_y = FALSE,
bw = FALSE,
...
)
x |
Result from |
type |
Type of plot, see details. |
panels |
Should plots be faceted by model, by value or by state? |
values |
Names of values to be plotted. These can be any of the costs or effects defined in states. |
strategy |
Name or position of model(s) of interest. |
states |
Names of states to be included in the plot. |
free_y |
Should y limits be free between panels? |
bw |
Black & white plot for publications? |
... |
Additional arguments passed to
When |
A ggplot2
object.
## These examples require \code{res_mod} from the hip replacement model discussed in
## `vignette("non-homogeneous", package = "heemod")`.
## Not run:
plot(res_mod)
plot(res_mod, model = "all")
plot(res_mod, model = "all", panels = "by_state")
plot(res_mod, model = "all", include_states = c("RevisionTHR", "SuccessR"))
plot(res_mod, model = "all", panels = "by_state", include_states = c("RevisionTHR", "SuccessR"))
plot(res_mod, model = 2, panel = "by_state", include_states = c("RevisionTHR", "SuccessR"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.