plot_fold_change: Plot fold change results

Description Usage Arguments Examples

View source: R/univariate.R

Description

Function for plotting the results from fold change.

Usage

1
2
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

1
2
3
4
5
6
    ## 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)

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