We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
keepX
🐞 Describe the bug:
When running biplot on sparse models, the correlation vectors are showing as right angles. This only happens when keepX is specified.
biplot
🔍 reprex results from reproducible example including sessioninfo():
Take the example from the biplot documentation page, but use spca with keepX instead of pca.
spca
pca
This is also reproducible by following the code example in the sPLS documentation page.
library(mixOmics) data(nutrimouse) # undergo the pca method scale.pca.lipid <- pca(nutrimouse$lipid, ncomp = 3, scale = TRUE, center = TRUE) # do this instead scale.pca.lipid <- spca(nutrimouse$lipid, keepX = c(5, 5, 5), ncomp = 3, scale = TRUE, center = TRUE) biplot(scale.pca.lipid) # produce the biplot
The same behaviour doesn't occur when not specifying keepX:
scale.pca.lipid <- spca(nutrimouse$lipid, ncomp = 3, scale = TRUE, center = TRUE) biplot(scale.pca.lipid) # produce the biplot
🤔 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:
I noticed that the problem starts as keepX starts distancing from the original number of features:
scale.pca.lipid <- spca(nutrimouse$lipid, ncomp = 3, scale = TRUE, center = TRUE, keepX=rep(ncol(nutrimouse$lipid) - 10, 3)) biplot(scale.pca.lipid)
Sorry, something went wrong.
aljabadi
No branches or pull requests
🐞 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: