draw.cfs | R Documentation |
Draw the graph of cash flow in order to facilitate the study and the effects of the analysis of a certain application.
Cash flow is a mathematical concept that can be plotted in order to facilitate the study and the effects of the analysis of a certain
application, which may be an investment loan, finance, etc.
Normally a cash flow contains inputs and outputs of capital, marked in
the timeline starting at t = 0.
A typical example is the graph that represents a bank loan held by a form
of business that shall return this loan in n equal installments over
the following months.
E1 E2 E3 ... En-1 En
^
I
0 1 2 3 ... n-1 n
I I I
V V V
S1 S2 S3 ... Sn-1 Sn
Is possible to note that the value is entered in the company's cash (cash was
positive) and S1, S2, ..., Sn are the values of the parcels will leave
the company's cash (negative).
The fact that each arrow is pointing upward (positive) or down (negative),
it is assumed by convention, and the cash flow will depend on who receives
or pays the Capital at a certain time, and:
t = 0 indicates the current day;
Ek is the capital input at a time k;
Sk is the capital output at a time k.
draw.cfs(
cfs,
gt = "Cash Flow Graphic",
to.file = FALSE,
filename = "output/draw.cfs.graph.png"
)
cfs |
A vector with a series of cash flows. |
gt |
A title for the graph. |
to.file |
Save or not the graph in the file |
filename |
File's name |
A plot with cash flow series
Other financial:
discount.rate.vector()
,
discounted.csf()
,
inflation.free.interest.rate()
,
net.future.value()
,
net.present.value()
ex.cfs <- c(-2000,1000,1500,-500,500)
draw.cfs(ex.cfs,'My Cash Flow')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.