-
Notifications
You must be signed in to change notification settings - Fork 54
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
Incorrect behaviour of biplot vectors when setting keepX
#311
Comments
Hi, @vinisalazar, I don’t think this is a bug. The behavior you’re observing arises due to the fundamental difference between When Regarding your observation of correlation vectors forming right angles, this occurs because in Here is an example to illustrate this behavior :
|
Thanks @Bowen0715 for the detailed explanation. ping @evaham1, not sure if this issue should be closed, if it's an expected behaviour. |
🐞 Describe the bug:
When running
biplot
on sparse models, the correlation vectors are showing as right angles. This only happens whenkeepX
is specified.🔍 reprex results from reproducible example including sessioninfo():
Take the example from the biplot documentation page, but use
spca
withkeepX
instead ofpca
.This is also reproducible by following the code example in the sPLS documentation page.
The same behaviour doesn't occur when not specifying
keepX
:🤔 Expected behavior:
The correlation vectors should not be displayed in right angles, but rather to present a behaviour similar as to when
keepX
is not specified.The text was updated successfully, but these errors were encountered: