Skip to contents

One line per index, with buttons that switch the y axis between a linear and a log scale.

Usage

plot_compare(prices, mode = "light")

Arguments

prices

Prices from normalize_prices().

mode

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

Value

A plotly object.

Examples

if (FALSE) { # interactive()
history <- get_history(c("S&P 500", "Euro Stoxx 50", "Nikkei 225"))
plot_compare(normalize_prices(history))
}