View source: R/plotTopSigGenes.R
plotTopSigGenesByContrast | R Documentation |
Plot top significantly differentially expressed genes by contrast
plotTopSigGenesByContrast(
countDgeResult,
contrast,
n = 5,
nSigned = NULL,
identifier = "GeneSymbol"
)
countDgeResult |
A |
contrast |
A character string, or an index (integer), or a logical vector with one |
n |
Integer, how many genes should be visualized. |
nSigned |
|
identifier |
Character string, column name in |
A ggplot
object. If nSigned
is not NULL
, genes are
plotted with colors: blue indicating down-regulated genes and red indicating up-regulated genes.
plotTopSigGenesByContrast
plots all contrasts at once.
edgeObj <- exampleEdgeObject()
edgeRes <- dgeWithEdgeR(edgeObj)
plotTopSigGenesByContrast(edgeRes, n=6, contrast=1)
plotTopSigGenesByContrast(edgeRes, n=6, contrast=2)
## display top three positive and top three negative genes
plotTopSigGenesByContrast(edgeRes, nSigned=3, contrast=1)
plotTopSigGenesByContrast(edgeRes, nSigned=4, contrast=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.