compute_density: compute_density

View source: R/density.R

compute_densityR Documentation

compute_density

Description

compute_density

Usage

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

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/


ddiez/scmisc documentation built on July 21, 2024, 11:35 a.m.