Learn R Programming

tvm (version 0.3.0)

plot.rate_curve: Plots a rate curve

Description

Plots a rate curve

Usage

# S3 method for rate_curve
plot(x, rate_type = NULL, ...)

Arguments

x

The rate curve

rate_type

The rate types to plot, in c("french","fut","german","zero_eff","zero_nom","swap")

...

Other arguments (unused)

Examples

Run this code
# NOT RUN {
r <- rate_curve(rates = c(0.1, 0.2, 0.3), rate_type = "zero_eff")
plot(r)
# }
# NOT RUN {
plot(r, rate_type = "german")
plot(r, rate_type = c("french", "german"))
# }

Run the code above in your browser using DataLab