Description Usage Arguments Value References See Also Examples
Two-dimensional weighted kernel density estimation with an axis-aligned bivariate normal kernel, evaluated on a rectangular grid
1 | kde2dWeighted(x, y, w, h, n, lims = c(range(x), range(y)),proba.min=1E-6)
|
x |
x coordinate of data |
y |
y coordinate of data |
w |
Vector of same length than x and y, weight of (x,y) coordinate. |
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 |
Vector of number of grid points in the two directions. A scalar value will be taken to apply to both directions. |
lims |
The limits of the rectangle covered by the grid as c(xl, xu, yl, yu). |
proba.min |
Scalar giving the minimum value for the density estimation. Every density <proba.min will be set to 0. |
A dataframe of dim n[1]*n[2], 3 giving x, y and z.
Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth edition. Springer.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.