Learn R Programming

SeqGSEA (version 1.12.0)

plotGeneScore: Plot gene (DE/DS) scores

Description

This function is to plot gene scores, as well as DE scores and DS scores

Usage

plotGeneScore(score, perm.score = NULL, pdf = NULL, main = c("Overall", "Expression", "Splicing"))

Arguments

score
the gene/DE/DS score vector.
perm.score
a matrix of the corresponding gene/DE/DS scores on the permutation data sets.
pdf
if a PDF file name provided, plot will be save to that file.
main
the key words representing the type of scores that will be shown in the plot main title.

Details

The plot shows the ranked scores from the largest to the smallest. Lines also show the maximum and average scores, values shown on the top left.

Examples

Run this code
data(DEscore, package="SeqGSEA")
plotGeneScore(DEscore, main="Expression")
data(DSscore, package="SeqGSEA")
gene.score <- geneScore(DEscore, DSscore, method="linear", DEweight = 0.3)
plotGeneScore(gene.score)

Run the code above in your browser using DataLab