volcano_plot: Volcano plot

View source: R/dge_utils.R

volcano_plot.DESeqResultsR Documentation

Volcano plot

Description

Plot log fold change vs log p-value.

Usage

## S3 method for class 'DESeqResults'
volcano_plot(
  dds_results,
  outliers = NULL,
  sig_cutoff = 0.05,
  sig_up_color = "red4",
  sig_down_color = "steelblue3",
  nonsig_color = "gray60",
  outlier_color = "goldenrod3",
  sig_alpha = 0.8,
  nonsig_alpha = 0.4,
  sig_size = 3,
  nonsig_size = 2,
  outlier_size = sig_size * 2.5
)

volcano_plot(object, ...)

## S3 method for class 'data.frame'
volcano_plot(
  data,
  fc_colname,
  pvalue_colname,
  adj_pvalue_colname,
  outlier_index = NULL,
  sig_cutoff = 0.05,
  sig_up_color = "red4",
  sig_down_color = "steelblue3",
  nonsig_color = "gray60",
  outlier_color = "goldenrod3",
  sig_alpha = 0.8,
  nonsig_alpha = 0.4,
  sig_size = 3,
  nonsig_size = 2,
  outlier_size = sig_size * 2.5
)

Arguments

outliers

A vector of outlier IDs.

sig_cutoff

Adjusted p-value significance threshold.

sig_up_color

Point color for statistically significant up-regulated features.

sig_down_color

Point color for statistically significant down-regulated features.

nonsig_color

Point color for features not statistical significant.

outlier_color

Point color for statistically significant features flagged as outliers.

sig_alpha

Point color alpha value for statistically significant features.

nonsig_alpha

Point color alpha value for features not statistically significant.

sig_size

Point size value for statistically significant features.

nonsig_size

Point size value for outliers.

object

A DESeqResults or data.frame object.

fc_colname

A string denoting the column in data that contains the log2 fold changes.

pvalue_colname

A string denoting the column in data that contains the nominal p-values.

adj_pvalue_colname

A string denoting the column in data that contains the adjusted p-values.

outlier_index

A numeric vector denoting row indices of outliers.

Details

Plots the log2 fold change vs -log10 pvalue for features tested for differential expression.

Value

A ggplot object.


bryancquach/omixjutsu documentation built on Jan. 29, 2023, 3:47 p.m.