Learn R Programming

specmine (version 3.1.6)

volcano_plot_fc_tt: Volcano plot

Description

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

Usage

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

Run this code
# NOT RUN {
    ## 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)
# }

Run the code above in your browser using DataLab