Description Usage Arguments Value
View source: R/plotting-functions.R
Plot epidemic paths
1 2 3 4 5 6 7 8 9 10 11 12 |
paths_data |
A |
y_var |
Column in |
n_max |
An integer. Maximum number of paths to display. Useful to avoid graphs that are too crowded. |
tlim |
A scalar. |
highlight_path_id |
A subset of values in column |
show_hist |
A logical scalar. If |
show_extinct |
A logical scalar. Show extinct paths along with non-extinct ones. |
smooth_data |
A |
extinct_color |
A color value understood by ggplot. This will be the colour of paths that went extinct before the end of the simulation. |
n_bins |
An integer scalar. Number of bins in the histogram panel. |
A plot. If show_hist = TRUE
(default), the output
will be a ggarrange
object showing both the paths, and a
histogram of the level at which they terminate. Otherwise the
output will be a ggplot
object showing only the paths.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.