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
Changes from 24 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
16 changes: 2 additions & 14 deletions inst/pages/beta_diversity.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -613,20 +613,8 @@ 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") +
#Create a plot
TuomasBorman marked this conversation as resolved.
Show resolved Hide resolved
plotLoadings(coef, ncomponents = 1, n = 20) + labs(x = "", y= "", title = "Top Taxa") +
TuomasBorman marked this conversation as resolved.
Show resolved Hide resolved
theme_bw()
```

Expand Down
Loading