ggspotratecurveplot {fixedincome} | R Documentation |
Fancy ggplot for SpotRateCurve object
Description
Fancy ggplot for SpotRateCurve object with custom axis, title
Usage
ggspotratecurveplot(
curve,
title = NULL,
subtitle = NULL,
caption = NULL,
curve.name = NULL,
curve.interpolation = FALSE,
curve.x.axis = c("dates", "terms"),
...
)
Arguments
curve |
SpotRateCurve object |
title |
plot title |
subtitle |
plot subtitle |
caption |
plot caption |
curve.name |
Curve's name, if not provided curve's refdate is used. |
curve.interpolation |
logical indicating to use daily interpolation
instead of curve points. Defaults to |
curve.x.axis |
x axis can be presented with a numeric scale representing
business days ( |
... |
additional arguments (not used) |
Examples
## Not run:
terms <- c(1, 11, 26, 27, 28)
rates <- c(0.0719, 0.056, 0.0674, 0.0687, 0.07)
curve <- spotratecurve(rates, terms, "discrete", "actual/365", "actual")
ggspotratecurveplot(curve)
## End(Not run)
[Package fixedincome version 0.0.5 Index]