Last data update: 2014.03.03

R: singlegeneplot
singlegeneplotR Documentation

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.

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

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)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(TSCAN)
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/TSCAN/singlegeneplot.Rd_%03d_medium.png", width=480, height=480)
> ### Name: singlegeneplot
> ### Title: singlegeneplot
> ### Aliases: singlegeneplot
> 
> ### ** Examples
> 
> 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)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>