Various plots for Markov models.
Arguments
- x
Result from
run_model()
.- 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
plot
.type = "counts"
represents state memberships (corrected) by cycle,type = "ce"
plots models on the cost-efficiency plane with the efficiency frontier, andtype = "values"
state values per cycle.When
states
is specified, the states will be turned into a factor with the ordering given in the variable, so that plotting order can be controlled.
Examples
## These examples require \code{res_mod} from the hip replacement model discussed in
## `vignette("non-homogeneous", package = "heemod")`.
if (FALSE) { # \dontrun{
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"))
} # }