chartSampleTrialsPortfolioValues | R Documentation |
This will produce a chart with a length(sampleIndex) number of lines representing individual trials. The sampleIndex is a vector with the numbers of the trials to display. For example, to plot the first hundred trials, sampleIndex would equal 1:100.
chartSampleTrialsPortfolioValues(
sim,
sampleIndex,
logScale = FALSE,
simResult = "simulation",
inflationAdjusted = FALSE
)
sim |
Simulation object |
sampleIndex |
Vector of indices of the trials to plot. |
logScale |
True to display the y-axis in log format |
simResult |
Name of item in sim with results (class = 'simResult') |
inflationAdjusted |
TRUE to adjust portfolio values by inflation, otherwise FALSE. |
Chart object (plotly)
## Not run: chartSampleTrialsPortfolioValues(sim, sampleIndex, logScale)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.