Visualize top genes associated with reduction components
VizDimLoadings(
object,
dims = 1:5,
nfeatures = 30,
col = "blue",
reduction = "pca",
projected = FALSE,
balanced = FALSE,
ncol = NULL,
combine = TRUE
)
Seurat object
Number of dimensions to display
Number of genes to display
Color of points to use
Reduction technique to visualize results for
Use reduction values for full dataset (i.e. projected dimensional reduction values)
Return an equal number of genes with + and - scores. If FALSE (default), returns the top genes ranked by the scores absolute values
Number of columns to display
Combine plots into a single patchwork
ggplot object. If FALSE
, return a list of ggplot objects
A patchwork
ggplot object if
combine = TRUE
; otherwise, a list of ggplot objects
data("pbmc_small")
VizDimLoadings(object = pbmc_small)
#> Warning: Requested number is larger than the number of available items (20). Setting to 20.
#> Warning: Requested number is larger than the number of available items (20). Setting to 20.
#> Warning: Requested number is larger than the number of available items (20). Setting to 20.
#> Warning: Requested number is larger than the number of available items (20). Setting to 20.
#> Warning: Requested number is larger than the number of available items (20). Setting to 20.