Skip to contents

Two panels with a bar per group of seasonality_analysis(). The upper one shows the mean return, green above 0 and red below, with the median as a diamond; the lower one shows the share of the returns above 0, with a dashed line at 50%. Hover over a bar for all the numbers of its group.

Usage

plot_seasonality(analysis, mode = "light")

Arguments

analysis

The result of seasonality_analysis().

mode

"light" (the default) or "dark", to suit a light or dark page.

Value

A plotly object.

Examples

btc <- get_history("Bitcoin (BTC)", as.Date("2013-04-29"))
plot_seasonality(seasonality_analysis(btc, "month"))
plot_seasonality(seasonality_analysis(btc, "day"), mode = "dark")