View source: R/helpful_functions.R
tukey_to_matrix | R Documentation |
The function will create a rootdetectR compatible Matrix from TukeyHSD output. The returened matrix can be used to retrieve plotting letters with the get_sig_letters function from rootdetectR.
tukey_to_matrix(tukeyHSD_output)
tukeyHSD_output |
matrix or data.frame; Output from the TukeyHSD() function. |
matrix; containing p-values from TukeyHSD() in an appropriate format for other rootdetectR functions.
# conduct ANOVA and TukeyHSD
root_norm <- norm_10mm_standard(root_output)
aov_all_vs_all <- aov(LengthMM ~ Factor1 * Factor2, data = root_norm)
tuk <- TukeyHSD(aov_all_vs_all, ordered = FALSE)$`Factor1:Factor2`
# use Tukey Output to retrieve matrix
tukey_to_matrix(tuk)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.