plot_investments_expense: Plot the Investments and Expenses

Description Usage Arguments Value Author(s) Examples

View source: R/plot_investments_expense.R

Description

Produces a plot of the investments, expenses and net investment.

#@details

Usage

1
plot_investments_expense(investment_vector, expense_vector, output_path)

Arguments

investment_vector

a vector of annual investments

expense_vector

a vector of annual withdrawals

output_path

file path to a folder in which the graph will be saved, NULL indicates plot, don't save

Value

No explicit returned values, merely the side-effects of a graph named 'investments_expense.png' written to output_path

Author(s)

George Fisher

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
investment_vector <- seq(1,30)*10
expense_vector <- c(investment_vector[1:10]  * 0.15,
                   investment_vector[11:20] * 0.35,
                   investment_vector[21:30] * runif(10, min=0.01, max=0.90))
plot_investments_expense(investment_vector,
                         expense_vector,
                         output_path=NULL)

## End(Not run)

sp500SlidingWindow documentation built on May 30, 2017, 4:18 a.m.