autoplot.DynamicStrategies: Easy Inspection of a Dynamic Strategy Simulation

Description Usage Arguments Value Examples

View source: R/autoplot.R

Description

Extends the autoplot method for the DynamicStrategies class.

Usage

1
2
## S3 method for class 'DynamicStrategies'
autoplot(object, ...)

Arguments

object

An object of the DynamicStrategies class.

...

Additional arguments to be passed to autoplot.

Value

A ggplot2 object.

Examples

1
2
3
4
5
6
7
library(ggplot2)

# Maximum Utility
simulate_strategy(strategy = "max_utility") |> autoplot()

# cppi
simulate_strategy(strategy = "cppi", multiple = 3) |> autoplot()

Reckziegel/DynamicStrategies documentation built on Dec. 18, 2021, 9:54 a.m.