plot.cf {financial} | R Documentation |
Plots bar plot of the cash flows or NPV versus periodic rate.
plot.cf(x, type = c("bar", "npv"), ...)
x |
an object of class "cf", obtained using cf . |
type |
type of the plot. |
... |
additional arguments passed to barplot internally. |
The "bar" plot displays all cash flows as bars, their cumulative sum as a line-plot and NPV as horizontal lines.
The "npv" plot displays dependence between rate and NPV in range 0 - 100 percent. The roots (IRR values) and extremes are indicated by vertical lines.
Lukasz Komsta
y = cf(c(-2500,6250,-3800),1:10,2:11,4:13) plot(y) plot(y,type="npv")