Functions to plot fixedincome objects using ggplot2 package and its grammar of graphics.
# S3 method for SpotRateCurve
autoplot(
object,
...,
curve.name = NULL,
curve.geom = c("line", "point"),
curve.interpolation = FALSE,
curve.x.axis = c("dates", "terms")
)
# S3 method for SpotRateCurve
autolayer(
object,
...,
curve.name = NULL,
curve.geom = c("line", "point"),
curve.interpolation = FALSE,
curve.x.axis = c("dates", "terms")
)
# S3 method for ForwardRate
autolayer(
object,
...,
curve.name = NULL,
curve.geom = c("step", "line", "point"),
curve.x.axis = c("dates", "terms")
)
SpotRateCurve or ForwardRate objects
additional arguments passed to ggplot2 geom_* functions
Curve's name
Curve geom used: line
, point
, step
logical indicating to use curve interpolation in
the plot. Defaults to FALSE
.
x axis can be presented with a numeric scale representing
business days (terms
) or dates (dates
). Defaults to dates
.