volcano_plot: Volcano plot

View source: R/volcano_plot.R

volcano_plotR Documentation

Volcano plot

Description

This function creates a volcano plot of p-values and effect sizes using ggplot2.

Usage

volcano_plot(
  pvector,
  effectvector,
  FDR = FALSE,
  title = NULL,
  col = "gray40",
  col.sig = "gray18",
  cex = 0.5,
  cex.sig = 0.75,
  alpha = 0.5,
  alpha.sig = 1,
  size.line.sig = 0.5
)

Arguments

pvector

Vector of p-values

effectvector

Vector of effect sizes

FDR

Should an FDR level of significance be indicated? Defaults to FALSE.

title

Title text.

col

Color that will be used for probes for non-significant probes. Defaults to 'gray40'.

col.sig

Color of FDR or Bonferroni significant probes. Defaults to 'gray18'.

cex

Size of non-significant probes. Defaults to 0.5.

cex.sig

Size of significant probes. Defaults to 0.5.

alpha

Alpha of non-significant probes. Defaults to 0.5.

alpha.sig

alpha Alpha of non-significant probes. Defaults to 1.

Size

of line indicating FDR and Bonferroni significance. Defaults to 0.5.

Value

Volcano plot


annebozack/EWASplot documentation built on Aug. 5, 2023, 6:02 p.m.