density2d | R Documentation |
Estimate point densities on a regular grid for.
density2d(x, y, facet = NULL, n = 100, margin = "n")
x |
x coordinates |
y |
y coordinates |
facet |
factor: estimate for each unique factor; can be NULL |
n |
size of the grid |
margin |
one of 'n','x' or 'y'; should the density be computed along both axes ('n'), or along 'x' or 'y' axis only |
a density value for each point
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.