Skip to contents

Creates automatic plots for wins, ranks, or points for an ff_simulation object as created by ff_simulate().

Usage

autoplot.ff_simulation_week(object, type = c("luck", "points"), ...)

# S3 method for class 'ff_simulation_week'
plot(x, ..., type = c("luck", "points"), y)

Arguments

object

a ff_simulation object as created by ff_simulate()

type

one of "luck" or "points"

...

unused, required by autoplot generic

x

A ff_simulation_week object.

y

Ignored, required for compatibility with the plot() generic.

Value

a ggplot object

Details

Usage of this function/method requires the ggplot2 package and (for wins and points plots) the ggridges package.

See also

vignette("basic") for example usage

Examples

# \donttest{

simulation <- .ffs_cache("foureight_sim_week.rds")

ggplot2::autoplot(simulation) # default is type = "luck"

ggplot2::autoplot(simulation, type = "points")
#> Picking joint bandwidth of 9.54

# }