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

plotGenes

Plot expression of multiple genes


Description

Uses plotGene to plot each gene (and dataset) on a separate page. It is recommended to call this function into a PDF due to the large number of plots produced.

Usage

plotGenes(object, genes, ...)

Arguments

object

liger object. Should call runTSNE before calling.

genes

Vector of gene names.

...

arguments passed from plotGene

Value

If returning single plot, returns ggplot object; if returning multiple plots; returns list of ggplot objects.

Examples

## Not run: 
# ligerex (liger object), factorization complete input
ligerex <- runTSNE(ligerex)
# plot expression for CD4 and FCGR3A
# pdf("gene_plots.pdf")
plotGenes(ligerex, c("CD4", "FCGR3A"))
# dev.off()

## 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.