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

feature request: Repel labels in plotIndiv and plotVar #129

Open
aljabadi opened this issue Jun 1, 2021 · 1 comment
Open

feature request: Repel labels in plotIndiv and plotVar #129

aljabadi opened this issue Jun 1, 2021 · 1 comment
Assignees
Labels
feature-request Can be implemented if there's enough interest

Comments

@aljabadi
Copy link
Collaborator

aljabadi commented Jun 1, 2021

Would be good if the plots could take a repel=<logical> arg with style='ggplot2'. Use code below as guide to what should work.

See https://mixomics-users.discourse.group/t/repel-labels-in-plotindiv-and-plotvar/621

data(nutrimouse)
X <- nutrimouse$lipid
Y <- nutrimouse$gene
nutri.res <- rcc(X, Y, ncomp = 3, lambda1 = 0.064, lambda2 = 0.008)
plotIndiv(nutri.res, cex=5,  ind.names = TRUE, repel=TRUE, group = nutrimouse$diet) 
plotVar(nutri.res, comp = c(1,3), cutoff = 0.5, repel = TRUE)
@aljabadi aljabadi added the feature-request Can be implemented if there's enough interest label Jun 1, 2021
@aljabadi aljabadi self-assigned this Jun 1, 2021
aljabadi added a commit to aljabadi/mixOmics that referenced this issue Jun 1, 2021
aljabadi added a commit to aljabadi/mixOmics that referenced this issue Jun 1, 2021
@magibc
Copy link

magibc commented Aug 7, 2022

Hi @aljabadi,
I use mixOmics version 6.18.1 and the repel argument works in plotIndiv() but not works in plotVar() retrieving me the following error:

Error in plotVar(nutri.res, comp = c(1, 3), cutoff = 0.5, repel = TRUE) : 
  unused argument (repel = TRUE)

I have installed BiocManager::install('aljabadi/mixOmics@ggrepel') although the following error appeared:

Error in fetch(key) : 
  lazy-load database '/media/vant/TextesD/R_packages/mixOmics/help/mixOmics.rdb' is corrupt

Or I need to update my R current version (4.1.2) to a newer one to install mixOmics 6.20 version that I understand that the argument repel appear included in the plotVar() function.

Thanks on advance for your help,

Maggie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Can be implemented if there's enough interest
Projects
None yet
Development

No branches or pull requests

2 participants