Skip to content

Commit

Permalink
Merge pull request #1 from jarioksa/use-adonis2
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhsparks committed May 16, 2024
2 parents d8b6e88 + cdc1230 commit 94f0e60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vignettes/betadiversity.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -244,14 +244,14 @@ PERMANOVA tests if the centroids, similar to means, of each group are significan
Likewise, an $R^2$ statistic is calculated, showing the percentage of the variance explained by the groups.

```{r adonis}
pathotype.adonis <- adonis(P_sojae_survey.matrix.jaccard ~ groups)
pathotype.adonis <- adonis2(P_sojae_survey.matrix.jaccard ~ groups)
pathotype.adonis
```

The PERMANOVA identified no significant differences between the groups centroids, or means (*p* = `r pathotype.adonis[[1]][[6]][[1]]`).
The PERMANOVA identified no significant differences between the groups centroids, or means (*p* = `r pathotype.adonis[[5]][[1]]`).
In addition to identifying significance between group centroids, the PERMANOVA also calculates how much of the variance can be explained by the specified groups (see the $R^2$ column in the PERMANOVA output).
In this case, the $R^2$ is `r pathotype.adonis[[1]][[6]][[1]]`, so `r round(pathotype.adonis[[1]][[6]][[1]], 3) * 100`% of the variance is explained by the groups used in analysis.
In this case, the $R^2$ is `r pathotype.adonis[[3]][[1]]`, so `r round(pathotype.adonis[[3]][[1]], 3) * 100`% of the variance is explained by the groups used in analysis.
Based on the PERMANOVA results we can conclude that these two groups are not different from each other and likely have similar pathotypes to each other.

## Analysis of Similarity (ANOSIM)
Expand Down

0 comments on commit 94f0e60

Please sign in to comment.