powered by
Creates automatic plots for wins, ranks, or points for an ff_simulation object as created by ff_simulate().
ff_simulation
ff_simulate()
autoplot.ff_simulation_week(object, type = c("luck", "points"), ...)# S3 method for ff_simulation_week plot(x, ..., type = c("luck", "points"), y)
# S3 method for ff_simulation_week plot(x, ..., type = c("luck", "points"), y)
a ggplot object
a ff_simulation object as created by ff_simulate()
one of "luck" or "points"
unused, required by autoplot generic
A ff_simulation_week object.
ff_simulation_week
Ignored, required for compatibility with the plot() generic.
plot()
Usage of this function/method requires the ggplot2 package and (for wins and points plots) the ggridges package.
vignette("basic") for example usage
vignette("basic")
# \donttest{ simulation <- .ffs_cache("foureight_sim_week.rds") ggplot2::autoplot(simulation) # default is type = "luck" ggplot2::autoplot(simulation, type = "points") # }
Run the code above in your browser using DataLab