Allow for customization of Nebulosa plot_density. Requires Nebulosa package from Bioconductor.

Plot_Density_Custom(
  seurat_object,
  features,
  joint = FALSE,
  viridis_palette = "magma",
  custom_palette = NULL,
  pt.size = 1,
  aspect_ratio = NULL,
  reduction = NULL,
  combine = TRUE,
  ...
)

Arguments

seurat_object

Seurat object name.

features

Features to plot.

joint

logical. Whether to return joint density plot. Default is FALSE.

viridis_palette

default viridis palette to use (must be one of: "viridis", "magma", "cividis", "inferno", "plasma"). Default is "magma".

custom_palette

non-default color palette to be used in place of default viridis options.

pt.size

Adjust point size for plotting.

aspect_ratio

Control the aspect ratio (y:x axes ratio length). Must be numeric value; Default is NULL.

reduction

Dimensionality Reduction to use (if NULL then defaults to Object default).

combine

Create a single plot? If FALSE, a list with ggplot objects is returned.

...

Extra parameters passed to plot_density.

Value

A ggplot object

Examples

if (FALSE) {
library(Seurat)
Plot_Density_Custom(seurat_object = pbmc_small, features = "CD3E")
}