library(pacta.interactive.plot)
load(system.file("example-data/test.rda", package = "pacta.interactive.plot"))
peer_comparison_data <-
as_peer_comparison_data(
equity_results_portfolio = equity_results_portfolio,
bonds_results_portfolio = bonds_results_portfolio,
peers_equity_results_user = peers_equity_results_user,
peers_bonds_results_user = peers_bonds_results_user,
investor_name = "Test",
portfolio_name = "TestPortfolio_Input",
start_year = 2020,
peer_group = "pensionfund",
select_scenario = "WEO2019_SDS",
select_scenario_auto = "ETP2017_B2DS",
select_scenario_shipping = "SBTI_SBTI",
select_scenario_other = "ETP2017_B2DS"
)
peer_comparison_chart(peer_comparison_data)