Description Usage Arguments Value Author(s) See Also Examples
Plot Volcano
1 2 3 4 5 6 7 8 | plotVolcano(object, ...)
## S4 method for signature 'DESeqResults'
plotVolcano(object, alpha, lfcThreshold = 0L,
ylim = 1e-10, genes = NULL, gene2symbol = NULL, ntop = 0L,
direction = c("both", "up", "down"), pointColor = "gray50",
sigPointColor = c(upregulated = "purple", downregulated = "orange"),
histograms = FALSE, return = c("ggplot", "data.frame"))
|
object |
Object. |
... |
Passthrough arguments to |
alpha |
Adjusted P value ("alpha") cutoff. |
lfcThreshold |
Log fold change ratio (base 2) cutoff threshold. |
ylim |
Upper boundary limit for y-axis. Helps preserve dynamic range
for gene sets containing highly significant P values (e.g. |
genes |
Character vector of genes to include. These must match the rownames of the object. It is best practice to use the stable gene identifiers from Ensembl (e.g. "ENSG00000000003") and not the gene symbols. |
gene2symbol |
|
ntop |
Number of top genes to label. |
direction |
Plot " |
pointColor |
Default point color for the plot. |
sigPointColor |
|
histograms |
Show LFC and P value histograms. |
return |
Object class to return. Uses |
ggplot
.
John Hutchinson, Michael Steinbaugh, Lorena Pantano
This function is an updated variant of
CHBUtils::volcano_density_plot()
.
Other Differential Expression Functions: alphaSummary
,
contrastName
, plotDEGHeatmap
,
plotDEGPCA
, plotMeanAverage
,
resultsTables
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | gene2symbol <- gene2symbol(bcb_small)
# DESeqResults ====
# Color DEGs in each direction separately
plotVolcano(
object = res_small,
sigPointColor = c(
upregulated = "purple",
downregulated = "orange"
)
)
# Label DEGs with a single color
plotVolcano(res_small, sigPointColor = "purple")
# Directional support
plotVolcano(
object = res_small,
direction = "up",
ntop = 5L,
gene2symbol = gene2symbol,
histograms = TRUE
)
plotVolcano(
object = res_small,
direction = "down",
ntop = 5L,
gene2symbol = gene2symbol,
histograms = TRUE
)
# Return coordinates as a data.frame
x <- plotVolcano(res_small, return = "data.frame")
glimpse(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.