plot_sims | R Documentation |
Plot data as an mrgsims object
plot_sims(.data, ..., .f = NULL, .dots = list())
.data |
a data frame |
... |
unquoted column names to plot on y-axis |
.f |
a formula to plot |
.dots |
extra arguments passed to |
This function is only intended for use with data frames that
were created by modifying an mrgsims
object.
mod <- mrgsolve::house() %>% ev(amt = 100)
out <- mrgsim(mod)
out_df <- dplyr::mutate(out, time <= 72)
plot(out)
plot_sims(out, CP, RESP)
## Not run:
plot_sims(out, .f = ~ CP + RESP)
plot_sims(out, .f = CP + RESP ~ time)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.