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)
A Seurat object
Name of metadata variable to plot on x axis
Name of metadata variable to plot on y axis
log10 transform x values
log10 transform y values
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
c(5, 10, 90, 95)
. If FALSE or NULL, no quantile
information is displayed
Returns a ggplot object