Advanced Features and Customization
Source:vignettes/cld-advanced-features.Rmd
cld-advanced-features.RmdCustom Parameters
The make_cld() function provides several parameters for
customizing the output and behavior.
Reverse Letter Ordering
By default, letters are assigned with “a” representing the group with the lowest mean/median. You can reverse this:
result <- pairwise.wilcox.test(chickwts$weight, chickwts$feed, exact = FALSE)
# Default ordering
make_cld(result)
#> Compact Letter Display (CLD)
#> Signif. level (alpha): 0.05
#> Method: Wilcoxon rank sum test with continuity correction
#>
#> group cld spaced_cld
#> casein a a__
#> horsebean b _b_
#> linseed bc _bc
#> meatmeal ac a_c
#> soybean c __c
#> sunflower a a__
# Reversed ordering
make_cld(result, reversed = TRUE)
#> Compact Letter Display (CLD)
#> Signif. level (alpha): 0.05
#> Method: Wilcoxon rank sum test with continuity correction
#>
#> group cld spaced_cld
#> casein c __c
#> horsebean b _b_
#> linseed ab ab_
#> meatmeal ac a_c
#> soybean a a__
#> sunflower c __cSwap Comparison Names
Sometimes the order of group names in comparisons needs to be swapped:
# Swap the order of compared groups
make_cld(result, swap_compared_names = TRUE)Print Comparisons
For debugging or understanding the comparison process:
# Print comparison names during processing
make_cld(result, print_comp = TRUE)