Description Usage Arguments Value Examples

View source: R/strategy_print.R

Various plots for Markov models.

1 2 3 4 |

`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.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ```
## 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)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.