One line per index, with buttons that switch the y axis between a linear and a log scale.
Arguments
- prices
Prices from
normalize_prices().- mode
"light"(the default) or"dark", to suit a light or dark page.
Examples
if (FALSE) { # interactive()
history <- get_history(c("S&P 500", "Euro Stoxx 50", "Nikkei 225"))
plot_compare(normalize_prices(history))
}