Learn R Programming

TSCAN (version 1.10.2)

singlegeneplot: singlegeneplot

Description

plot expression values of individual genes against pseudotime axis

Usage

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.

Value

ggplot2 object.

Details

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

Examples

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

Run the code above in your browser using DataLab