plot_volcano: plot_volcano Generates a pretty volcano plot, by default...

View source: R/plotting.R

plot_volcanoR Documentation

plot_volcano Generates a pretty volcano plot, by default takes in dataframes formatted like the output of Seurat::FindMarkers Pretty by my standards

Description

plot_volcano Generates a pretty volcano plot, by default takes in dataframes formatted like the output of Seurat::FindMarkers Pretty by my standards

Usage

plot_volcano(
  volcano_df,
  var_fc = avg_log2FC,
  var_pval = p_val_adj,
  var_gene = gene,
  thresh = Inf
)

Arguments

volcano_df

data frame with volcano data

var_fc

fold change variable

thresh

pval-threshold of where to display gene names up to. Can be a single number, which will set a single cutoff, or a numerical vector of length 2, which will set two cutoffs on the left and the right side of the volcano

var_p

pvalue variable

Value

a ggplot2 object displaying a pretty volcano plot


amyh25/RFunctions documentation built on Aug. 26, 2023, 4:33 p.m.