Learn R Programming

specmine (version 3.1.6)

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 = TRUE, 
var = FALSE, 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
# NOT RUN {
    ## Example of plotting the fold change results
	library(specmine.datasets)
    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