micompr (version 1.1.0)

plot.assumptions_manova: 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 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

Run this code
# NOT RUN {
# 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")

# }

Run the code above in your browser using DataCamp Workspace