Learn R Programming

micompr (version 1.1.4)

plot.assumptions_paruv: Plot p-values for testing the assumptions of the parametric tests used in output comparison

Description

Plot method for objects of class assumptions_paruv containing p-values produced by testing the assumptions of the parametric tests used for comparing outputs.

Usage

# S3 method for assumptions_paruv
plot(x, ...)

Value

None.

Arguments

x

Objects of class assumptions_paruv.

...

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

Details

One bar plot is presented for the Bartlett test (bartlett.test), showing the respective p-values along principal component. s bar plots are presented for the Shapiro-Wilk (shapiro.test), where s is the number of groups being compared; individual bars in each plot represent the p-values associated with each principal component.

Examples

Run this code

# Plot the Shapiro-Wilk and Bartlett test p-values for each dependent
# variable of the iris data
plot(assumptions_paruv(iris[, 1:4], iris[, 5]))

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

Run the code above in your browser using DataLab