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)

Arguments

data

Data frame containing result of chosen test from calculate_test function.

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.

Value

An object of class ggplot containing volcano plot of p-values versus log2.fold for each gene.

See also

Examples

# NOT RUN {
library(MLExpRessoData)
plot_volcano(BRCA_met, values=TRUE)
# }