Function plot_volcano
draws a plot with p-values and fold logarithm from methylation or expression when we use the t-test.
plot_volcano(data, line = NA, names = NA, ylog = TRUE, ngen = NA, title = NA, fold_line = NA, values = FALSE)
data | Data frame containing result of chosen test from |
---|---|
line | P-value on which we draw a horizontal line. |
names | P-value below which we want to draw genes names. |
ylog | Logical. If TRUE values on y-axis will be logarithmized. |
ngen | Character symbol or vector of gene names to be labeled. |
title | Character containing title for plot. |
fold_line | Value on which we want to draw a vertical line on both sides of zero. |
values | Logical. If TRUE p-values and log fold for chosen gene will be add to a plot. By default we use FALSE. |
An object of class ggplot containing volcano plot of p-values versus log2.fold for each gene.
# NOT RUN { library(MLExpRessoData) plot_volcano(BRCA_met, values=TRUE) # }