Various plots for Markov models.
# S3 method for 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")`. if (FALSE) { 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")) }