View source: R/helpful_functions.R
get_sig_letters | R Documentation |
The function takes a matrix as input (from rootdetectR ANOVA analysis or from tukey_to_matrix function) and returns a table with significance letters.
get_sig_letters(tukmatrix)
tukmatrix |
matrix; Output from ANOVA functions (onefacaof_fac1, onefacaov_fac2, twofacaov, interaction_twofacaov) or tukey_to_matrix function |
data.frame; containing Label and the corresponding significance letter
# 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 an appropriate matrix
tuk_mat <- tukey_to_matrix(tuk)
# obtain significance_letters
get_sig_letters(tuk_mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.