Chapter 7 Stacked Vlnplot for Given Features Sets

library(Seurat)
library(tidyverse)
library(magrittr)

7.1 Descripiton

Stacked vlnplot for given gene set. Seurat V4 has provided the similar function

7.2 Load seurat object

combined <- get(load('data/Demo_CombinedSeurat_SCT_Preprocess.RData'))

7.3 Source stacked vlnplot funciton

source("scripts/visualize/Stacked-Vlnplot.R")

7.4 Stacked Vlnplot given gene set

sel.gene <- c("PAX6", "RBFOX1", "GAD1")

StackedVlnPlot(combined, sel.gene, pt.size = 0)
## Scale for 'y' is already present. Adding another scale for 'y', which will
## replace the existing scale.
## Scale for 'y' is already present. Adding another scale for 'y', which will
## replace the existing scale.
## Scale for 'y' is already present. Adding another scale for 'y', which will
## replace the existing scale.