Plots results of a permutation test
carried out with the permutation_test()
function. Now use either
correlation_test()
or pca_test()
and the associated plotting functions.
Arguments
- permutation_results
object of class
permutation_results
.- violin
Determines whether the variances explained are depicted by distinct violin plots for each PC or by connected lines. the advantage of lines is that they correctly indicate that values for each PC depend on one another within a given permutation. That is, if an earlier PC soaks up a lot of the variation in a data set, then there is less variation left to explain by subsequent PCs. Default value is
FALSE
.
Examples
onze_perm <- permutation_test(
onze_intercepts |> dplyr::select(-speaker),
pc_n = 5,
n = 10,
scale = TRUE,
cor.method = 'pearson'
)
plot_permutation_test(onze_perm)