plot_anova: Plot ANOVA results

Description Usage Arguments Examples

View source: R/univariate.R

Description

Function for plotting the results from ANOVA.

Usage

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

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

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