Skip to contents

Create a volcano plot from differential analysis results table.

Usage

plot_volcano(x, pval_cutoff = 0.05, colors = c("#3366ff", "darkred", "grey"))

Arguments

x

a matrix or data.frame containing differential analysis results. Must include columns logFC, pval, contrast, and label.

pval_cutoff

numeric; cutoff for adjusted p-values to be considered significant. Adds a dashed horizontal line to the plot.

colors

character; length 3 vector of significantly negative, significantly positive, and non-significant (NS) logFC colors.

Value

A ggplot2 object.

Author

Tyler Sagendorf