Description Usage Arguments Value Examples
View source: R/l_layer_density2d.R
Two-dimensional kernel density estimation with an axis-aligned bivariate normal kernel
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
widget |
'loon' widget path name as a string |
x |
The coordinates of |
y |
The coordinates of |
h |
vector of bandwidths for x and y directions. Defaults to
normal reference bandwidth (see |
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 |
color |
color of each contour |
linewidth |
the line width |
nlevels |
number of contour levels desired iff
|
levels |
numeric vector of levels at which to draw contour lines. |
label |
label used in the layers inspector |
parent |
parent group layer |
index |
of the newly added layer in its parent group |
group |
separate x vector or y vector into a list by group |
active |
a logical determining whether points appear or not (default is |
... |
other arguments to modify |
an l_layer
widget
1 2 3 4 | if(interactive()) {
p <- l_plot(iris, color = iris$Species)
l <- l_layer_density2d(p)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.