do_BeeSwarmPlot()

Basic usage

SCpubr::do_ViolinPlot(sample = sample, 
                      features = "nCount_RNA")

Remove boxplots

SCpubr::do_ViolinPlot(sample = sample, 
                      features = "nCount_RNA",
                      plot_boxplot = FALSE)

Add horizontal line

SCpubr::do_ViolinPlot(sample = sample, 
                      features = "nCount_RNA", 
                      y_cut = 25000)

Modify line width of violins

SCpubr::do_ViolinPlot(sample = sample,
                      features = "nCount_RNA",
                      line_width = 1.5)

Modify with of the boxplots

SCpubr::do_ViolinPlot(sample = sample,
                      features = "nCount_RNA",
                      boxplot_width = 0.1)

Force different plots to share the same Y axis limits

SCpubr::do_ViolinPlot(sample = sample,
                           features = c("nCount_RNA", "nFeature_RNA"),
                           ncol = 1,
                           share.y.lims = TRUE)

Split by another variable

SCpubr::do_ViolinPlot(sample = sample,
                      features = "nCount_RNA",
                      split.by = "annotation",
                      plot_boxplot = FALSE)