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, ...)

Arguments

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.

Note

I took this implementation from http://slowkow.com/notes/ggplot2-color-by-density/