-
Notifications
You must be signed in to change notification settings - Fork 98
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
Issue #254 #256
Merged
Merged
Issue #254 #256
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Species scores are missing in dbrda, but this function can be used to add the species scores item to a dbrda() result object similarly as in other constrained ordination methods. This version is the one I suggested in https://stackoverflow.com/questions/46531969 and is still preliminary and incomplete (and undocumented and non-exported)
Together with previous commits in this branch, this implements the functions outlined in github issue #254 for adding species scores to ordination results. Still undocumented and non-exported.
This should be cherry-picked to the master even if this branch is not merged. This commit makes no reference to sppscores() development in this branch.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is a response to issue #254. It adds a replacement function
sppscores<-
to add species scores if they are missing, or replace species scores if wanted. With the current implementation, the usage will beRemoving
<-
fromsppscores<-
would change the usage toThe function is implemented for
dbrda
(which never has species scores) and forcapscale
&metaMDS
which usually have species scores, but they may be missing or unsatisfactory.The PR is also more explicit on missing species scores. Moreover, information on species scores in db-RDA (
capscale
,dbrda
) is saved with the ordination object and displayed inprint.cca()
.