plot.rate_curve {tvm} | R Documentation |
Plots a rate curve
Description
Plots a rate curve
Usage
## S3 method for class 'rate_curve'
plot(x, rate_type = NULL, y_labs_perc = TRUE, y_labs_acc = NULL, ...)
Arguments
x |
The rate curve |
rate_type |
The rate types to plot, in c("french", "fut", "german", "zero_eff", "zero_nom", "swap", "zero_cont") |
y_labs_perc |
If TRUE, the y axe is labeled with percentages |
y_labs_acc |
If y_labs_perc is TRUE, the accuracy for the percentages (i.e., 1 for xx%, 0.1 for xx.x%, 0.01 for xx.xx%, etc) |
... |
Other arguments (unused) |
Examples
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"))
## End(Not run)
[Package tvm version 0.5.2 Index]