View source: R/9_autoplot_week.R
autoplot.ff_simulation_week | R Documentation |
Creates automatic plots for wins, ranks, or points for an ff_simulation
object as created by ff_simulate()
.
autoplot.ff_simulation_week(object, type = c("luck", "points"), ...) ## S3 method for class 'ff_simulation_week' plot(x, ..., type = c("luck", "points"), y)
object |
a |
type |
one of "luck" or "points" |
... |
unused, required by autoplot generic |
x |
A |
y |
Ignored, required for compatibility with the |
Usage of this function/method requires the ggplot2 package and (for wins and points plots) the ggridges package.
a ggplot object
vignette("basic")
for example usage
simulation <- .ffs_cache("foureight_sim_week.rds") ggplot2::autoplot(simulation) # default is type = "luck" ggplot2::autoplot(simulation, type = "points")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.