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.
Arguments
- analysis
The result of
seasonality_analysis().- mode
"light"(the default) or"dark", to suit a light or dark page.
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")