Learn R Programming

specmine (version 1.0)

plot_fold_change: Plot fold change results

Description

Function for plotting the results from fold change.

Usage

plot_fold_change(dataset, fc.results, fc.threshold, plot.log = T, var = F, xlab = "")

Arguments

dataset
list representing the dataset from a metabolomics experiment.
fc.results
fold change results.
fc.threshold
fold change threshold for the p-value.
plot.log
boolean value to determine if the fold change values are transformed logarithmically or not.
var
boolean value, if TRUE it uses the xlab argument to represent the xlabel of the plot.
xlab
string with the x axis description.

Examples

Run this code
    ## Example of plotting the fold change results
    data(cachexia)
    fc.results = fold_change(cachexia, "Muscle.loss", 
			"control")
    plot_fold_change(cachexia, fc.results, 2)

Run the code above in your browser using DataLab