Creates a 2d kernel density plot.
kde2dplot(x, y = NULL, h, h.relative = 1, col = "red", add = FALSE,
drawlabels = FALSE, n = 100, shade = TRUE, breaks = c(0.1, 0.25,
0.5, 0.75, 0.9), ...)x coords
y coords
bandwidths in x,y direction
adjustment to bandwidths relative to normal reference model. (For non-smooth data, will want < 1, probably.
colour to use
if FALSE, plot a whole new plot. Otherwise, superimpose on to existing plot.
A value of false will give no labels on the contours whereas true will.
resolution of underlying grid
shade in the interiors of the contours?
breakpoints to plot contours at. These correspond to quantiles of the data - e.g. at 0.9, the space contained in the contours corresponds to an estimated 10 of the population, with the highest probability.
additional params for contour see codecontour
Creates a 2d kernel density plot