plot.assumptions_paruv: Plot _p_-values for testing the assumptions of the parametric...

View source: R/assumptions.R

plot.assumptions_paruvR Documentation

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 class 'assumptions_paruv'
plot(x, ...)

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.

Value

None.

Examples


# 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")


fakenmc/micompr documentation built on Aug. 6, 2024, 8:29 p.m.