Description Usage Arguments Details Examples
View source: R/utilityFunctions.R
Compute a 2D density estimate and return the estimate evaluated at each pair of points
1 | get_local_density(x, y, group = NULL)
|
x |
a vector of x-values |
y |
a vector of y-values |
group |
a group |
.data |
input data frame |
h |
density bandwidth |
This is useful for computing color-density scatterplots
1 2 | overlapping = data.frame(x = rt(3e3, df = 3), y = rt(3e3, df = 3))
get_local_density(overlapping$x, overlapping$y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.