get_r2 {mina} | R Documentation |
Same function as 'com_r2' with matrix and corresponding descriptive table as input.
get_r2(x, des, group)
x |
Dissimilarity / distance matrix which indicate variances. |
des |
The descriptive table of samples which define the groups. |
group |
The name(s) of column(s) used as experimental setup group(s) in descriptive file. |
r2 The variance ratio cannot be explained by given groups.
maize <- new("mina", tab = maize_asv2, des = maize_des2) maize <- norm_tab(maize, method = "raref") maize <- fit_tabs(maize) maize <- com_dis(maize, method = "bray") get_r2(dis(maize), des(maize), group = c("Compartment", "Soil"))