Usage
magcon(x, y, h, doim = TRUE, docon = TRUE, dobar = TRUE, n = 100, add = FALSE,
xlab='', ylab='', imcol = rev(rainbow(1000, start = 0, end = 2/3)),
conlevels = c(0.5, pnorm(1) - pnorm(-1), 0.95), barposition = "topright",
barorient = "v",bartitle = "Contained %", bartitleshift=0,...)
Arguments
h
Smoothing parameter to pass to kde2d. Can take 1 or 2 arguments for x and optionally y smoothing.
doim
Should an image be generated.
docon
Should contours be overlain.
dobar
Should a magbar colour bar be added describing the image levels (doim must also be true for this to appear).
n
The n to send to kde2d to determine the resolution of the smoothing.
add
Should the output of this function be added to the current plot. If FALSE then a new plot is generated.
xlab
Label for x-axis, only used if add=FALSE.
ylab
Label for y-axis, only used if add=FALSE.
imcol
The colour palette to use for the image (this is also sent to magbar).
conlevels
Specific quantile contours to add. Default is for 50
barposition
The position to use for magbar. See magbar help for more details.
barorient
The orientation to use for magbar. See magbar help for more details.
bartitle
Title to use for magbar.
bartitleshift
control of how far the magbar title is shifted away from its default position.
...
Other arguments to pass to the contour function, e.g. lty=c(2,1,3).