Plot_Density_Custom {scCustomize} | R Documentation |
Nebulosa Density Plot
Description
Allow for customization of Nebulosa plot_density. Requires Nebulosa package from Bioconductor.
Usage
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 |
Value
A ggplot object
Examples
## Not run:
library(Seurat)
Plot_Density_Custom(seurat_object = pbmc_small, features = "CD3E")
## End(Not run)
[Package scCustomize version 2.1.2 Index]