
Last chance! 50% off unlimited learning
Sale ends in
A cash flow plot is a plot used in finance and allows you to graphically depict the timing of the cash flows as well as their nature as either inflows or outflows. An "up" arrow represents money received and a "down" arrow money paid out.
PlotCashFlow(x, y, xlim = NULL, labels = y)
time period of the cashflows (in and out)
amount of the cashflows
range of the x-axis, defaults to range(x)
.
the labels of the cashflows will be printed outside the arrows.
# NOT RUN {
PlotCashFlow(x=c(6:9, 13:15), y=-c(rep(40, 4), rep(50,3)),
xlim=c(6,17), labels=c(rep(40, 4), rep(50,3)))
PlotCashFlow(x=c(6,8,9,12,17), y=c(10,30,40,50,70))
# }
Run the code above in your browser using DataLab