plot.assumptions_manova: Plot _p_-values for testing the multivariate normality...

View source: R/assumptions.R

plot.assumptions_manovaR Documentation

Plot p-values for testing the multivariate normality assumptions of the MANOVA test

Description

Plot method for objects of class assumptions_manova which presents a bar plot containing the p-values produced by the Royston multivariate normality test (mvn) for each group being compared.

Usage

## S3 method for class 'assumptions_manova'
plot(x, ...)

Arguments

x

Objects of class assumptions_manova.

...

Extra options passed to barplot. The col parameter defines colors for p-values below 1, 0.05 and 0.01, respectively.

Value

None.

Examples


# Plot the Royston test p-value for multivariate normality of each group
# (species) of the iris data
plot(assumptions_manova(iris[, 1:4], iris[, 5]))

# Plot the same data with logarithmic scale for p-values
plot(assumptions_manova(iris[, 1:4], iris[, 5]), log = "y")


FakenMC/micompr documentation built on Jan. 31, 2024, 5:09 a.m.