compute_density | R Documentation |
compute_density
compute_density(x, ...)
## Default S3 method:
compute_density(x, y, n = 100, ...)
## S3 method for class 'SingleCellExperiment'
compute_density(x, coord.name = "TSNE", ...)
## S3 method for class 'CellDataSet'
compute_density(x, coord.name = "A", ...)
cell_density(x, ...)
x |
x coordinate of data |
... |
additional arguments passed down to methods. |
y |
y coordinate of data |
n |
Number of grid points in each direction. Can be scalar or a length-2 integer vector. |
coord.name |
name of coordinates for some methods. |
I took this implementation from http://slowkow.com/notes/ggplot2-color-by-density/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.