Description Usage Arguments Details Value
plot various maRketSim objects
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## S3 method for class 'history.market'
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 (%)",
...)
## S3 method for class 'history.account'
plot(x,ylab="PV ($)",xlab="Time",...)
## S3 method for class 'sum.account'
plot(x,which=c("pv","duration"),n.ticks=7,...)
## S3 method for class 'vasicek.discrete'
plot(x,t=ncol(x$prob.tree),...)
## S3 method for class 'sum.vasicek.discrete'
plot(x,...)
|
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 |
Defaults should be pretty sensible to give you a sense of the data embedded in an object.
plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.