Volcano plot for visualizing differential metabolite analysis results
VolcanoPlot.Rd
This function generates a volcano plot using data from mmo$pairwise (PairwiseComp(mmo, 'group1', 'group2') should be precended), highlighting upregulated and downregulated features based on log2 fold change and adjusted p-value
Usage
VolcanoPlot(
mmo,
comp,
topk = 10,
pthr = 0.05,
outdir = "volcano.png",
height = 5,
width = 5
)
Arguments
- mmo
The mmo object with pairwise comparison matrix
- comp
The comparison to visualize, e.g., 'group1_vs_group2
- topk
The number of top features to label in the plot (default: 10)
- pthr
The threshold of adjusted p-value to be considered significant (default: 0.05)
- outdir
The output file path for the volcano plot (default: 'volcano.png')
- height
The height of the output plot in inches (default: 5)
- width
The width of the output plot in inches (default: 5)