stacked_area_chart.Rd
Plot exposures and NAV timeseries as a stacked area chart
stacked_area_chart(results_df, title, tickers, colours)
Results dataframe from rsims backtest with daily NAV
Plot title
Character vector of tickers used in the simulation
Character vector of colours to use for tickers and Cash exposures
A ggplot2 stacked area chart of timeseries of exposures and NAV
if (FALSE) {
tickers = unique(prices$ticker)
my_cols = portfolio_colours(length(tickers))
cash_backtest(prices, weights) %>%
append_nav_to_bt_results() %>%
stacked_area_chart("Exposures and NAV", tickers = tickers, colours = my_cols)
}