Learn R Programming

specmine (version 3.1.6)

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 = FALSE)

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
# NOT RUN {
    ## Example of plotting the ANOVA results - first filter the 
    ## dataset to reduce computation time
	library(specmine.datasets)
	data(propolis)
    propolis_proc = missingvalues_imputation(propolis)
    propolis_proc = flat_pattern_filter(propolis_proc, "iqr", by.percent = TRUE,
	red.value = 75) 
    anova.results = aov_all_vars(propolis_proc, "seasons", doTukey = FALSE)
    plot_anova(propolis_proc, anova.results)
# }

Run the code above in your browser using DataLab