plot.bsmfit: Plot a BSM Fit

Description Usage Arguments Details Author(s)

Description

Various types of plots of the fitted BSM object

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'bsmfit'
plot(x, which = "posterior", parameters = NULL,
  estimate = "mean", cred.int = FALSE, cred.alpha = 0.95,
  cred.col = "#99999950", new = TRUE, col = NULL, lty = 1, lwd = 2,
  legend.order = NULL, predict.values = NULL, n.posterior.rows = 3,
  leg.posx = "topleft", leg.posy = NULL, leg.cex = 0.7, leg.bty = "n",
  chain.cols = rainbow(x$fit$BUGSoutput$n.chains + 1, s = 0.8, v = 0.8),
  interactive = FALSE, ...)

Arguments

x

a bsmfit object

which

which plot to draw, c("posterior", "curve")

parameters

if which = "posterior", "pairs", then these parameters are used

estimate

"mean" or "median", the estimate to be used when drawing the curve

cred.int

logical, if TRUE, then a credible interval is calcualted from the posterior samples of L50 and SR (and delta)

cred.alpha

the significance level for the credible interval, default is 0.95

cred.col

the colour of the credible interval

new

logical, if TRUE, then a new plot of the data is drawn, otherwise the curve is plot over any existing one

col

colour of lines

lty

line type

lwd

line width

legend.order

order of variables for legend purposes (color, line type, line width)

predict.values

extra values to predict

n.posterior.rows

the number of rows in the posterior plot

leg.posx

x-position of legend, can be "topleft" etc

leg.posy

NULL, or y-position of legend

leg.cex

size of legend

leg.bty

box type of legend

chain.cols

colours of lines for traceplots and density plots, NOTE: not used for pairs and curve

interactive

logical, if TRUE, use clicking on the plot to navigate through plots

...

additional parameters to plot

Details

Lots ??

Author(s)

Tom Elliott


tmelliott/bsm documentation built on May 31, 2019, 4:38 p.m.