-
Notifications
You must be signed in to change notification settings - Fork 187
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
PCoA extract scores #515
Comments
PCoA ScoresThe ?ordinate Alternatively, if you already know what to expect and/or what you're looking for, you can just use the # RStudio and list autocomplete
ordu$[press tab]
# OR use str on the list itself
str(ordu) Species/Taxa PositionsPlease see Sample covariatesThere is not currently an option in |
Hi I am having the exact same problem, and I have read and re-read the documentation and there isn't an obvious solution. I have an object ord_clr which was produced using ordinate(..., method="rda") and I cannot for the life of me extract any data from it (thought plot_ordination works) Is there any chance of more documentation for this? Please :-D Thanks |
Hello! As a workaround, you may extract scores with
The first two columns should be the scores.
Alternatively, you may use
In With kind regards, |
Thank you! |
Sometimes I have issues because I forget to call ordinate using the capital
letters:
GP.ord <- ordinate(GP1, method="RDA")
if you use
GP.ord <- ordinate(GP1, method="rda")
the usual way of "seeing" the mysterious list with all its components
str(GP.ord) gives
str(GP.ord)
NULL
although it fact it was a fail to call `rda` properly,
when you do
GP.ord <- ordinate(GP1, method="RDA")
str() does provide all the hidden information about the matrices returned:
str(GP.ord)
List of 10
$ colsum : Named num [1:204] 36170 6776 9382 12911 6040 ...
..- attr(*, "names")= chr [1:204] "12812" "546222" "313857" "252398" ...
$ tot.chi : num 1.49e+11
$ Ybar
.....blahblahblah....
This is confusing because the function called is "rda" lower case in the
vegan package.
…On Tue, Oct 19, 2021 at 6:54 AM Mick Watson ***@***.***> wrote:
Thank you!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#515 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJFZPLWEDFHMBHDCABKWDDUHV2CHANCNFSM4BNZN5LQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
Susan Holmes
|
@spholmes oops! Maybe we should make the |
Greetings,
I am working on a microbiomes project and did an principal coordinates analysis in Phyloseq with the following script:
ordu = ordinate(qd.red, "PCoA", "unifrac", weighted = TRUE)
p = plot_ordination(qd.red, ordu, color = "SampleType", shape = "Geology")
p = p + scale_y_continuous(limits=c(-0.2, 0.2))
p = p + geom_point(size = 3)
p = p + scale_colour_brewer(type = "qual", palette = "Set1")
p
It works great, but I would like to add environmental data (found on the mapping file) and species vectors to see what explains better the apparent arrangement of the ordination.
Also, is there a way to extract the scores associated to the ordination.
Thanks in advance for any comments,
Yakshi Ortiz
The text was updated successfully, but these errors were encountered: