autoplot.ff_simulation: Automatically Plot ff_simulation Object

View source: R/9_autoplot.R

autoplot.ff_simulationR Documentation

Automatically Plot ff_simulation Object

Description

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

Usage

autoplot.ff_simulation(object, type = c("wins", "rank", "points"), ...)

## S3 method for class 'ff_simulation'
plot(x, ..., type = c("wins", "rank", "points"), y)

Arguments

object

a ff_simulation object as created by ff_simulate()

type

one of "wins", "rank", "points"

...

unused, required by autoplot generic

x

A ff_simulation object.

y

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

Details

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

Value

a ggplot object

See Also

vignette("basic") for example usage

Examples



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

ggplot2::autoplot(simulation) # default is type = "wins"
ggplot2::autoplot(simulation, type = "rank")
ggplot2::autoplot(simulation, type = "points")



ffsimulator documentation built on Feb. 16, 2023, 5:37 p.m.