Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plotGeneViolin

Plot violin plots for gene expression


Description

Generates violin plots of expression of specified gene for each dataset.

Usage

plotGeneViolin(
  object,
  gene,
  methylation.indices = NULL,
  by.dataset = TRUE,
  return.plots = FALSE
)

Arguments

object

liger object.

gene

Gene for which to plot relative expression.

methylation.indices

Indices of datasets in object with methylation data (this data is not magnified and put on log scale).

by.dataset

Plots gene expression for each dataset separately (default TRUE).

return.plots

Return ggplot objects instead of printing directly to console (default FALSE).

Value

List of ggplot plot objects (only if return.plots TRUE, otherwise prints plots to console).

Examples

## Not run: 
# ligerex (liger object based on in-memory datasets), factorization complete
# plot expression for CD4 and return plots
violin_plots <- plotGeneViolin(ligerex, "CD4", return.plots = TRUE)
# ligerex (liger object based on datasets in HDF5 format), factorization complete input
ligerex <- readSubset(ligerex, slot.use = "norm.data", max.cells = 5000)
violin_plots <- plotGeneViolin(ligerex, "CD4", return.plots = TRUE)

## End(Not run)

rliger

Linked Inference of Genomic Experimental Relationships

v1.0.0
GPL-3
Authors
Joshua Welch [aut, ctb], Chao Gao [aut, ctb, cre], Jialin Liu [aut, ctb], Joshua Sodicoff [aut, ctb], Velina Kozareva [aut, ctb], Evan Macosko [aut, ctb], Paul Hoffman [ctb], Ilya Korsunsky [ctb], Robert Lee [ctb]
Initial release
2021-04-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.