Description Usage Arguments Details
Creates a 2d kernel density plot.
1 2 3 |
x |
x coords |
y |
y coords |
h |
bandwidths in x,y direction |
h.relative |
adjustment to bandwidths relative to normal reference model. (For non-smooth data, will want < 1, probably. |
col |
colour to use |
add |
if FALSE, plot a whole new plot. Otherwise, superimpose on to existing plot. |
drawlabels |
A value of false will give no labels on the contours whereas true will. |
n |
resolution of underlying grid |
shade |
shade in the interiors of the contours? |
breaks |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.