stacked_violin_plot: This function is used to plot the stacked violinplot of...

Description Usage Arguments Details Examples

View source: R/myviolin_plot.R

Description

This function is used to plot the stacked violinplot of single cell RNAseq data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
stacked_violin_plot(
  gene,
  seurat_object,
  cluster = NULL,
  limits.max = 7,
  width = 13,
  height = 10.3,
  flip = T,
  filename = "",
  text.size = 10,
  Mean = T,
  col = NULL
)

Arguments

gene

a vector of the genes name to plot

seurat_object

the seurat object of your data

cluster

choose to cluster you interested

limits.max

numeric,the max legend value to regulate the color levels

width

the width of the figure

height

the height of the figure

flip

logical,set the direction of coordinate axis

filename

the name of the generated file

text.size

numeric,the text size of gene names

Mean

whether choose to mean

col

col of the figure

Details

This function is used to plot the stacked violinplot of single cell RNAseq data or any seurat object for specified genes expressed on celltype clusters.

Examples

1
2
3
4
5
6
## Not run: 
input.file <- system.file('extdata','pbmc_1k.RDS',package = 'LIANLABDATA')
pbmc_1k <- readRDS(input.file)
gene=c('CD8A','CD4')

## End(Not run)

Lian-Lab/LIANLAB documentation built on June 23, 2021, 5:37 a.m.