Learn R Programming

specmine (version 1.0)

plot_anova: Plot ANOVA results

Description

Function for plotting the results from ANOVA.

Usage

plot_anova(dataset, anova.results, anova.threshold = 0.01, reverse.x = F)

Arguments

dataset
list representing the dataset from a metabolomics experiment.
anova.results
ANOVA results.
anova.threshold
ANOVA threshold for the p-value.
reverse.x
boolean value to indicate if the x-axis is plotted in reverse.

Examples

Run this code
    ## Example of plotting the ANOVA results - first filter the 
    ## dataset to reduce computation time
    data(cassavaPPD)
    cassavaPPD = flat_pattern_filter(cassavaPPD, "iqr", by.percent = TRUE,
	red.value = 75) 
    anova.results = aov_all_vars(cassavaPPD, "varieties", doTukey = FALSE)
    plot_anova(cassavaPPD, anova.results, 0.05e-8)

Run the code above in your browser using DataLab