A weighted two-dimensional kernel density estimation with an axis-aligned bivariate normal kernel, evaluated on a square grid. This is a weighted-version of MASS::kde2d.
1 |
x |
x coordinate of data |
y |
y coordinate of data |
w |
data weights |
h |
vector of bandwidths for x and y directions. Defaults to normal reference bandwidth (see ‘bandwidth.nrd’). A scalar value will be taken to apply to both directions. |
n |
Number of grid points in each direction. Can be scalar or a length-2 integer vector. |
lims |
The limits of the rectangle covered by the grid as ‘c(xl, xu, yl, yu)’. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.