plot.s_curves: S3 Plot Method

Description Usage Arguments Details See Also

View source: R/methods_curves.R

Description

S3 plot method for an object of the class "s_curves".

Usage

1
2
3
4
5
6
## S3 method for class 's_curves'
plot(x, xlim = c(range(mapply(function(i) range(x[[i]][, 1]), seq(x)))),
	ylim = c(range(mapply(function(i) range(x[[i]][, 2]), 
	seq(x)))) * 10000, expoints = NULL, 
	xlab = "Maturity (years)", ylab = "Spread (basis points)",
	lwd = 2, lty = 1, main = "Spread curves", ...)

Arguments

x

object of the class "s_curves".

ylim

the y limits of the plot, for details see plot.default.

xlim

the x limits of the plot, for details see plot.default.

lty

the line type, for details see par.

lwd

the line width, for details see par.

expoints

extrapolation points (default: NULL).

ylab

a label for the y axis, for details see plot.default.

xlab

a label for the x axis, for details see plot.default.

main

a main title for the plot, for details see title.

...

other graphical parameters, see par.

Details

The spread curves (the difference of zero-coupon yield curves) are plotted, if at least two groups of bonds were specified.

See Also

plot.df_curves, plot.fwr_curves, plot.spot_curves


termstrc documentation built on May 29, 2017, 1:05 p.m.