View source: R/mu_ggplots2_ext.R
getPointDensity | R Documentation |
Get point density of points in 2 dimensions. Code from http://slowkow.com/notes/ggplot2-color-by-density/
getPointDensity(x, y, n = 100)
x |
A numeric vector. |
y |
A numeric vector. |
n |
Create a square n by n grid to compute density. |
The density within each square
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.