volcano_plot_fc_tt: Volcano plot

Description Usage Arguments Value Examples

View source: R/univariate.R

Description

Volcano plot to intersect the results from t-tests and fold change.

Usage

1
2
volcano_plot_fc_tt(dataset, fc.results, tt.results, 
fc.threshold = 2, tt.threshold = 0.01)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

fc.results

fold change results.

tt.results

t-tests results.

fc.threshold

fold change threshold value.

tt.threshold

t-test p-value threshold.

Value

Returns the name of the samples which intersects both fold change and t-tests results above the given thresholds.

Examples

1
2
3
4
5
6
7
    ## Example of a volcano plot
	library(specmine.datasets)
    data(cachexia)
    foldchange.results = fold_change(cachexia, "Muscle.loss", "control")
    ttests.results = tTests_dataset(cachexia, "Muscle.loss")
    volcano_plot_fc_tt(cachexia, foldchange.results, ttests.results, 
		       fc.threshold = 2, tt.threshold = 0.01)

specmine documentation built on Sept. 21, 2021, 5:06 p.m.