financial (version 0.2)

plot.cf: Plot of cash flow model

Description

Plots bar plot of the cash flows or NPV versus periodic rate.

Usage

"plot"(x, type = c("bar", "npv"), ...)

Arguments

x
an object of class "cf", obtained using cf.
type
type of the plot.
...
additional arguments passed to barplot internally.

Details

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.

See Also

cf

Examples

Run this code
y = cf(c(-2500,6250,-3800),1:10,2:11,4:13)
plot(y)
plot(y,type="npv")

Run the code above in your browser using DataLab