Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update RDA example using plotLoadings #603

Merged
merged 33 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
1ad8ada
Removing return comments & adding link to cheatsheet
Apr 24, 2024
2028793
Merge remote-tracking branch 'upstream/devel' into devel
Apr 24, 2024
270ec82
Removed build output files
Apr 25, 2024
fe5d09b
Removed last output file
Apr 25, 2024
275e5c3
Merge remote-tracking branch 'upstream/devel' into devel
Apr 25, 2024
068fc22
Fixed link - Directly to cheatsheet
Apr 25, 2024
a44c063
Small fixes for verbose
Apr 26, 2024
9ba5da0
Merge remote-tracking branch 'upstream/devel' into devel
Apr 29, 2024
61a8bbf
Merge branch 'devel' into devel
TuomasBorman May 3, 2024
2b22a26
Merge remote-tracking branch 'origin/devel' into devel
May 6, 2024
d4dadb4
Merge remote-tracking branch 'upstream/devel' into devel
May 6, 2024
0ac25c0
Merge remote-tracking branch 'upstream/devel' into devel
May 13, 2024
2203296
Merge remote-tracking branch 'upstream/devel' into devel
May 22, 2024
1bf674f
Merge branch 'devel' into devel
TuomasBorman May 24, 2024
9b011ce
Merge branch 'devel' into devel
TuomasBorman May 24, 2024
64d3a08
Added feather package import
May 29, 2024
bb46050
Merge conflicts solved
May 29, 2024
3f2ba81
Back to OMA devel branch
May 29, 2024
3879e42
Merge remote-tracking branch 'upstream/devel' into devel
May 30, 2024
8821ee9
Merge remote-tracking branch 'upstream/devel' into devel
Aug 14, 2024
7dddb19
Update RDA example using plotLoadings
Aug 14, 2024
9703f39
added comment
Aug 14, 2024
84838f2
added n parameter
Aug 14, 2024
c924919
Merge branch 'devel' into devel
antagomir Aug 27, 2024
d13744a
Merge branch 'devel' into devel
antagomir Aug 28, 2024
98d0c2c
Merge branch 'devel' into devel
Daenarys8 Sep 9, 2024
a02d0ef
Merge branch 'devel' into devel
Daenarys8 Oct 2, 2024
e14b80b
Update oma_packages.csv
Daenarys8 Oct 2, 2024
4f6e00d
Merge branch 'devel' into devel
TuomasBorman Oct 7, 2024
a580f84
Update oma_packages.csv
TuomasBorman Oct 7, 2024
827319e
up
TuomasBorman Oct 7, 2024
d4f918a
up
TuomasBorman Oct 7, 2024
ef609dd
Merge branch 'devel' of github.com:ElySeraidarian/OMA into ElySeraida…
TuomasBorman Oct 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 1 addition & 21 deletions inst/pages/beta_diversity.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -607,27 +607,7 @@ how the groups tend to differ from each other in terms of community
composition.

```{r plot-top-coef-anova, fig.cap = ""}
# Extract loadings for first eigenvector
rda <- reducedDim(tse2, "RDA")
rda <- attr(rda, "rda")
coef <- rda$CCA$v
coef <- coef[, 1, drop = FALSE]

# Get the taxa with biggest weights
top_coef <- head(coef[rev(order(abs(coef))), , drop = FALSE], 20)
# Sort weights in increasing order
top_coef <- top_coef[order(top_coef), ]

# Create data.frame
df <- data.frame(
x = top_coef,
y = factor(names(top_coef), unique(names(top_coef))))

# Create a plot
ggplot(df, aes(x = x, y = y)) +
geom_bar(stat = "identity") +
labs(x = "", y= "", title = "Top Taxa") +
theme_bw()
plotLoadings(tse2, "RDA", ncomponents = 2, n = 20)
```

In the example above, the largest differences between the two groups
Expand Down
3 changes: 1 addition & 2 deletions oma_packages/oma_packages.csv
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ grid
gtools
gsEasy
igraph
kableExtra
IntegratedLearner
knitr
Maaslin2
mia
Expand Down Expand Up @@ -68,7 +68,6 @@ SpiecEasi
SPRING
stats
stringr
SuperLearner
tidyverse
topGO
vegan
Expand Down
Loading