Hello,
I have a bray-curtis distance matrix from phyloseq in R. My dataset consists of 4 groups and 2 repeated measurements (1, 2) from one subject. Now I would like to extract every distance value belonging to a specific group and group-comparison, i. e.:
A B C D
all A all B all C all D all
1 A 1 B 1 C 1 D 1
2 A 2 B 2 C 2 D 2
Do you have an idea how I could do that? Subsequently I want to build boxplots for each group with ggplot2.