compute_density
compute_density(x, ...)
# S3 method for default
compute_density(x, y, n = 100, ...)
# S3 method for SingleCellExperiment
compute_density(x, coord.name = "TSNE", ...)
# S3 method for CellDataSet
compute_density(x, coord.name = "A", ...)
cell_density(x, ...)
x coordinate of data
additional arguments passed down to methods.
y coordinate of data
Number of grid points in each direction. Can be scalar or a length-2 integer vector.
name of coordinates for some methods.
I took this implementation from http://slowkow.com/notes/ggplot2-color-by-density/