PlotValues.Gene.SingleCell.10x: Violin plot of single-cell PSI values vs cell groups

View source: R/Script_DROPLET_08_ADHOC_PLOT_VIOLINPLOT_PlotValues_SingleCell_Gene.R

PlotValues.Gene.SingleCell.10xR Documentation

Violin plot of single-cell PSI values vs cell groups

Description

Violin plot of single-cell PSI values on the y-axis against cell groups on the x-axis.

Usage

PlotValues.Gene.SingleCell.10x(
  MarvelObject,
  cell.group.list,
  gene_short_name,
  log2.transform = TRUE,
  cell.group.colors = NULL,
  xlabels.size = 8,
  alpha = 0.5
)

Arguments

MarvelObject

Marvel object. S3 object generated from CheckAlignment.10x function.

cell.group.list

List of character strings. Each element in the list is a cell group. The label of each element of the list represents the cell group label.

gene_short_name

Character string. Gene name whose expression will be plotted.

log2.transform

Logical value. If set to TRUE (default), normalised gene expression values will be off-set by 1 and then log2-transformed prior to plotting.

cell.group.colors

Vector of character strings. Colors of cell groups and should be same length as cell.group.list. Default ggplot2 colors are used.

xlabels.size

Numeric value. Font size of x-tick labels. Default is 10.

alpha

Numeric value. Transparency of the data points. Takes any values between 0-1. Default value is 0.5.

Value

An object of class S3 with new slots MarvelObject$adhocPlot$ViolinPlot$SingleCell$Plot and MarvelObject$adhocPlot$ViolinPlot$SingleCell$Data.


wenweixiong/MARVEL documentation built on Aug. 5, 2024, 2:54 p.m.