Beta diversity box plot - R

I’m trying to recreate the box plot of beta diversity in R.
I uploaded the unweighted diversity matrix to R and calculated the mean distance for each sample from other samples. The question is how can I produce the distance from controls?
The boxplot looks different then the original ones produced in qiime2 (which performs calculations of distance from cases and distance from controls).

Thank you!

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.