Learn R Programming

sp500SlidingWindow (version 0.1.0)

plot_ending_bal_distribution: Plot the Distribution of Ending Balances

Description

Plot the Distribution of Ending Balances

Usage

plot_ending_bal_distribution(window_df, output_path, window_width)

Arguments

window_df
data.frame output of sp500SlidingWindow
output_path
folder to write the file and the plot, if NULL then the image is plotted to the screen
window_width
number of years in each window

Value

No explicit returned values, (1) writes 'distribution.txt' with statistics about the windows (2) creates a plot 'distribution.png' in the output_path showing the distribution of outcomes