singlegeneplot: singlegeneplot

Description Usage Arguments Details Value Author(s) Examples

View source: R/singlegeneplot.R

Description

plot expression values of individual genes against pseudotime axis

Usage

1
singlegeneplot(geneexpr, TSCANorder, cell_size = 2)

Arguments

geneexpr

The gene expression values. Names should agree with the pseudotime information.

TSCANorder

The output of function TSCANorder.

cell_size

Size of cells in the plot.

Details

This function plots the expression values of individual genes against given pseudotime

Value

ggplot2 object.

Author(s)

Zhicheng Ji, Hongkai Ji <zji4@zji4.edu>

Examples

1
2
3
4
5
6
7
data(lpsdata)
procdata <- preprocess(lpsdata)
lpsmclust <- exprmclust(procdata)
lpsorder <- TSCANorder(lpsmclust,orderonly=FALSE,flip=TRUE)
#Choose STAT1 gene expression to plot
STAT2expr <- log2(lpsdata["STAT2",]+1)
singlegeneplot(STAT2expr, lpsorder)

Example output



TSCAN documentation built on Nov. 8, 2020, 5:13 p.m.