plot.pansim | R Documentation |
plot method for simulations
## S3 method for class 'pansim'
plot(
x,
drop_states = c("t", "S", "R", "E", "I", "X", "incidence"),
keep_states = NULL,
condense = FALSE,
facet_by_age = FALSE,
log = FALSE,
log_lwr = 1,
show_times = TRUE,
...
)
x |
fitted |
drop_states |
states to exclude from plot |
keep_states |
states to include in plot (overrides |
condense |
condense states (e.g. all ICU states -> "ICU") before plotting? See |
facet_by_age |
if this is an age-structured simulation, do we want to facet by age? if FALSE, facet by state (default) |
log |
plot y-axis on log scale? |
log_lwr |
lower bound for log scale |
show_times |
indicate times when parameters changed? |
... |
additional arguments to |
a ggplot
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.