Problem with scatter plot martrix

32 views
Skip to first unread message

ba247

unread,
May 21, 2016, 7:37:30 AM5/21/16
to ggplot2
I am trying to do a scatter plot matrix under "correlation" in Duducer (R version 2.15.0 (2012-03-30)), but I am getting the following error:

> ggcorplot(cor.mat=corr.mat,data=aquaut,
+ cor_text_limits=c(5,20),
+ line.method="lm")
Error in rename(x, .base_to_ggplot, warn_missing = FALSE) : 
  could not find function "revalue"
> rm('corr.mat')

I have done this several times before and have got graph results (like the attached file). Currently, I am getting only the text output with correlation values.

Alternatively, I also tried installing R3.3 with altering the Rprofile.site file to start Deducer automatically. In that I am unable to get the load data window after typing JGR(). It goes into spewing "java.lang.NullPointerException". 

I use R via Deducer and / or RCommander. I am not into coding or command line driven operation of R!

Thanks,

BA
5.jpeg

mehmet...@gmail.com

unread,
May 21, 2016, 11:00:11 AM5/21/16
to ggplot2
That error usually shows up when the package that defines that function is not loaded. "revalue" is probably plyr::revalue, try installing (and loading) that one.

install.packages("plyr")
library("plyr") # if using dplyr, load dplyr after plyr





> sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-unknown-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C             
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8   
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8  
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                
 [9] LC_ADDRESS=C               LC_TELEPHONE=C           
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C      

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base    

other attached packages:
[1] Deducer_0.7-9 MASS_7.3-45   car_2.0-25    JGR_1.7-16    iplots_1.1-7
[6] JavaGD_0.6-1  rJava_0.9-8   ggplot2_2.1.0

loaded via a namespace (and not attached):
 [1] class_7.3-14       codetools_0.2-14   colorspace_1.2-6   e1071_1.6-7      
 [5] effects_3.0-7      foreign_0.8-66     grid_3.1.2         gtable_0.2.0     
 [9] lattice_0.20-33    lme4_1.1-12        Matrix_1.2-5       MatrixModels_0.4-1
[13] mgcv_1.8-12        minqa_1.2.4        multcomp_1.4-4     munsell_0.4.3    
[17] mvtnorm_1.0-5      nlme_3.1-127       nloptr_1.0.4       nnet_7.3-12      
[21] parallel_3.1.2     pbkrtest_0.4-2     plyr_1.8.3         png_0.1-7        
[25] quantreg_5.21      Rcpp_0.12.4        sandwich_2.3-4     scales_0.4.0     
[29] SparseM_1.7        splines_3.1.2      survival_2.39-2    tcltk_3.1.2      
[33] TH.data_1.0-7      tools_3.1.2        zoo_1.7-12    
Reply all
Reply to author
Forward
0 new messages