Learn R Programming

maRketSim (version 0.9.2)

plot.history.market: maRketSim plotting functions

Description

plot various maRketSim objects

Usage

"plot"( x, plot.MMrate = TRUE, plot.mats = c(1, 2, 5, 10), cols = rainbow(length(plot.mats)), start.t = x[[1]]$t, end.t = x[[length(x)]]$t + 0.5, xlab = "Year", ylab = "Interest Rate (%)", ...) "plot"(x,ylab="PV ($)",xlab="Time",...) "plot"(x,which=c("pv","duration"),n.ticks=7,...) "plot"(x,t=ncol(x$prob.tree),...) "plot"(x,...)

Arguments

x
maRketSim object
plot.MMrate
TRUE/FALSE whether to plot the money market rate or not
plot.mats
Maturities to plot
cols
color vector of length length(plot.mats)
start.t
Time to begin plotting at
end.t
Time to end plotting at
xlab
x label
ylab
y label
...
Pass-alongs to base graphics.
t
time vector
which
Which items of summary object to plot
n.ticks
How many ticks

Value

plot

Details

Defaults should be pretty sensible to give you a sense of the data embedded in an object.