Learn R Programming

rliger (version 1.0.0)

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

Run this code
# 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()
# }

Run the code above in your browser using DataLab