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

fviz_mfa_var() : undefined columns selected #101

Open
PFRoux opened this issue Sep 5, 2019 · 0 comments
Open

fviz_mfa_var() : undefined columns selected #101

PFRoux opened this issue Sep 5, 2019 · 0 comments

Comments

@PFRoux
Copy link

PFRoux commented Sep 5, 2019

Hi there !

First of all I would like toi warmly thank you for this awesome tool.

While using it to perform some MFA output explorations (MFA generated with FactoMineR) I notice the following error with fviz_mfa_var().

It is easy to reproduce following the using the code chunk provided in the help page of fviz_mfa().

library("FactoMineR")
library("factoextra")

data(wine)
res.mfa <- MFA(wine,
                          group=c(2,5,3,10,9,2),
                          type=c("n",rep("s",5)),
                          ncp=5,
                          name.group=c("orig","olf","vis","olfag","gust","ens"),
                          num.group.sup=c(1,6),
                          graph=FALSE)

# Quantitative variables
fviz_mfa_var(res.mfa,
                     "quanti.var",
                      palette = "jco",
                      col.var.sup = "violet", repel = TRUE)

**Error in `[.data.frame`(X$call$X, rownames(ind), grp, drop = FALSE) : 
  undefined columns selected**

session_info()
- Session info -----------------------------------------------------------------------------------------------------------------------
 setting  value                       
 version  R version 3.6.1 (2019-07-05)
 os       Windows >= 8 x64            
 system   x86_64, mingw32             
 ui       RStudio                     
 language (EN)                        
 collate  French_France.1252          
 ctype    French_France.1252          
 tz       Europe/Paris                
 date     2019-09-05                  

- Packages ---------------------------------------------------------------------------------------------------------------------------
 ! package              * version   date       lib source                                
   assertthat             0.2.1     2019-03-21 [1] CRAN (R 3.6.1)                        
   backports              1.1.4     2019-04-10 [1] CRAN (R 3.6.0)                        
   beeswarm               0.2.3     2016-04-25 [1] CRAN (R 3.6.0)                        
   Biobase              * 2.44.0    2019-05-02 [1] Bioconductor                          
   BiocGenerics         * 0.30.0    2019-05-02 [1] Bioconductor                          
   BiocParallel         * 1.18.1    2019-08-06 [1] Bioconductor                          
   bitops                 1.0-6     2013-08-17 [1] CRAN (R 3.6.0)                        
   callr                  3.3.1     2019-07-18 [1] CRAN (R 3.6.1)                        
   cli                    1.1.0     2019-03-19 [1] CRAN (R 3.6.1)                        
   cluster                2.1.0     2019-06-19 [1] CRAN (R 3.6.1)                        
   codetools              0.2-16    2018-12-24 [1] CRAN (R 3.6.1)                        
   colorspace             1.4-1     2019-03-18 [1] CRAN (R 3.6.1)                        
   corpcor                1.6.9     2017-04-01 [1] CRAN (R 3.6.0)                        
   corrplot               0.84      2017-10-16 [1] CRAN (R 3.6.1)                        
   cowplot                1.0.0     2019-07-11 [1] CRAN (R 3.6.1)                        
   crayon                 1.3.4     2017-09-16 [1] CRAN (R 3.6.1)                        
   curl                   4.0       2019-07-22 [1] CRAN (R 3.6.1)                        
   DelayedArray         * 0.10.0    2019-05-02 [1] Bioconductor                          
   desc                   1.2.0     2018-05-01 [1] CRAN (R 3.6.1)                        
   devtools             * 2.1.0     2019-07-06 [1] CRAN (R 3.6.1)                        
   digest                 0.6.20    2019-07-04 [1] CRAN (R 3.6.1)                        
   doParallel             1.0.15    2019-08-02 [1] CRAN (R 3.6.1)                        
   dplyr                * 0.8.3     2019-07-04 [1] CRAN (R 3.6.1)                        
   ellipse                0.4.1     2018-01-05 [1] CRAN (R 3.6.1)                        
 V factoextra           * 1.0.5     2019-09-05 [1] Github (kassambara/factoextra@8736d0b)
   FactoMineR           * 1.42      2019-07-03 [1] CRAN (R 3.6.1)                        
   flashClust             1.01-2    2012-08-21 [1] CRAN (R 3.6.0)                        
   foreach                1.4.7     2019-07-27 [1] CRAN (R 3.6.1)                        
   fs                     1.3.1     2019-05-06 [1] CRAN (R 3.6.1)                        
   GenomeInfoDb         * 1.20.0    2019-05-02 [1] Bioconductor                          
   GenomeInfoDbData       1.2.1     2019-08-12 [1] Bioconductor                          
   GenomicRanges        * 1.36.0    2019-05-02 [1] Bioconductor                          
   ggbeeswarm             0.6.0     2017-08-07 [1] CRAN (R 3.6.1)                        
   ggplot2              * 3.2.1     2019-08-10 [1] CRAN (R 3.6.1)                        
   ggpubr                 0.2.3     2019-09-03 [1] CRAN (R 3.6.1)                        
   ggrepel                0.8.1     2019-05-07 [1] CRAN (R 3.6.1)                        
   ggsignif               0.6.0     2019-08-08 [1] CRAN (R 3.6.1)                        
   glue                   1.3.1     2019-03-12 [1] CRAN (R 3.6.1)                        
   gridExtra              2.3       2017-09-09 [1] CRAN (R 3.6.1)                        
   gtable                 0.3.0     2019-03-25 [1] CRAN (R 3.6.1)                        
   igraph                 1.2.4.1   2019-04-22 [1] CRAN (R 3.6.1)                        
   IRanges              * 2.18.1    2019-05-31 [1] Bioconductor                          
   iterators              1.0.12    2019-07-26 [1] CRAN (R 3.6.1)                        
   jsonlite               1.6       2018-12-07 [1] CRAN (R 3.6.1)                        
   knitr                  1.24      2019-08-08 [1] CRAN (R 3.6.1)                        
   labeling               0.3       2014-08-23 [1] CRAN (R 3.6.0)                        
   lattice              * 0.20-38   2018-11-04 [1] CRAN (R 3.6.1)                        
   lazyeval               0.2.2     2019-03-15 [1] CRAN (R 3.6.1)                        
   leaps                  3.0       2017-01-10 [1] CRAN (R 3.6.1)                        
   magrittr               1.5       2014-11-22 [1] CRAN (R 3.6.1)                        
   MASS                 * 7.3-51.4  2019-03-31 [1] CRAN (R 3.6.1)                        
   Matrix                 1.2-17    2019-03-22 [1] CRAN (R 3.6.1)                        
   matrixStats          * 0.54.0    2018-07-23 [1] CRAN (R 3.6.1)                        
   memoise                1.1.0     2017-04-21 [1] CRAN (R 3.6.1)                        
   mixOmics             * 6.8.1     2017-02-06 [1] Github (mixOmicsTeam/mixOmics@0754a80)
   MOFA                 * 1.0.0     2019-05-02 [1] Bioconductor                          
   MultiAssayExperiment * 1.10.4    2019-05-20 [1] Bioconductor                          
   munsell                0.5.0     2018-06-12 [1] CRAN (R 3.6.1)                        
   pheatmap             * 1.0.12    2019-01-04 [1] CRAN (R 3.6.1)                        
   pillar                 1.4.2     2019-06-29 [1] CRAN (R 3.6.1)                        
   pkgbuild               1.0.5     2019-08-26 [1] CRAN (R 3.6.1)                        
   pkgconfig              2.0.2     2018-08-16 [1] CRAN (R 3.6.1)                        
   pkgload                1.0.2     2018-10-29 [1] CRAN (R 3.6.1)                        
   plyr                   1.8.4     2016-06-08 [1] CRAN (R 3.6.1)                        
   prettyunits            1.0.2     2015-07-13 [1] CRAN (R 3.6.1)                        
   processx               3.4.1     2019-07-18 [1] CRAN (R 3.6.1)                        
   ps                     1.3.0     2018-12-21 [1] CRAN (R 3.6.1)                        
   purrr                  0.3.2     2019-03-15 [1] CRAN (R 3.6.1)                        
   R6                     2.4.0     2019-02-14 [1] CRAN (R 3.6.1)                        
   rARPACK                0.11-0    2016-03-10 [1] CRAN (R 3.6.1)                        
   RColorBrewer           1.1-2     2014-12-07 [1] CRAN (R 3.6.0)                        
   Rcpp                   1.0.2     2019-07-25 [1] CRAN (R 3.6.1)                        
   RCurl                  1.95-4.12 2019-03-04 [1] CRAN (R 3.6.0)                        
   remotes                2.1.0     2019-06-24 [1] CRAN (R 3.6.1)                        
   reshape              * 0.8.8     2018-10-23 [1] CRAN (R 3.6.1)                        
   reshape2               1.4.3     2017-12-11 [1] CRAN (R 3.6.1)                        
   reticulate             1.13      2019-07-24 [1] CRAN (R 3.6.1)                        
   rhdf5                  2.28.0    2019-05-02 [1] Bioconductor                          
   Rhdf5lib               1.6.0     2019-05-02 [1] Bioconductor                          
   rlang                  0.4.0     2019-06-25 [1] CRAN (R 3.6.1)                        
   rprojroot              1.3-2     2018-01-03 [1] CRAN (R 3.6.1)                        
   RSpectra               0.15-0    2019-06-11 [1] CRAN (R 3.6.1)                        
   rstudioapi             0.10      2019-03-19 [1] CRAN (R 3.6.1)                        
   S4Vectors            * 0.22.0    2019-05-02 [1] Bioconductor                          
   scales                 1.0.0     2018-08-09 [1] CRAN (R 3.6.1)                        
   scatterplot3d          0.3-41    2018-03-14 [1] CRAN (R 3.6.0)                        
   sessioninfo            1.1.1     2018-11-05 [1] CRAN (R 3.6.1)                        
   snow                   0.4-3     2018-09-14 [1] CRAN (R 3.6.0)                        
   stringi                1.4.3     2019-03-12 [1] CRAN (R 3.6.0)                        
   stringr                1.4.0     2019-02-10 [1] CRAN (R 3.6.1)                        
   SummarizedExperiment * 1.14.1    2019-07-31 [1] Bioconductor                          
   testthat               2.2.1     2019-07-25 [1] CRAN (R 3.6.1)                        
   tibble                 2.1.3     2019-06-06 [1] CRAN (R 3.6.1)                        
   tidyr                  0.8.3     2019-03-01 [1] CRAN (R 3.6.1)                        
   tidyselect             0.2.5     2018-10-11 [1] CRAN (R 3.6.1)                        
   usethis              * 1.5.1     2019-07-04 [1] CRAN (R 3.6.1)                        
   vipor                  0.4.5     2017-03-22 [1] CRAN (R 3.6.1)                        
   withr                  2.1.2     2018-03-15 [1] CRAN (R 3.6.1)                        
   xfun                   0.9       2019-08-21 [1] CRAN (R 3.6.1)                        
   XVector                0.24.0    2019-05-02 [1] Bioconductor                          
   yaml                   2.2.0     2018-07-25 [1] CRAN (R 3.6.0)                        
   zlibbioc               1.30.0    2019-05-02 [1] Bioconductor             

Thanks a lot and have a nice day !

Pef

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant