View source: R/visualization.R
DensityScatter | R Documentation |
Create a scatterplot using variables in the object metadata and color cells by the density of points in the x-y space.
DensityScatter(object, x, y, log_x = FALSE, log_y = FALSE, quantiles = NULL)
object |
A Seurat object |
x |
Name of metadata variable to plot on x axis |
y |
Name of metadata variable to plot on y axis |
log_x |
log10 transform x values |
log_y |
log10 transform y values |
quantiles |
Vector of quantiles to display
for x and y data distribution. Must be integer values
between 0 and 100.
TRUE can be passed as a shorthand way to set
|
Returns a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.