ggplot2 download

52 views
Skip to first unread message

Sara Fung

unread,
Dec 11, 2012, 11:17:27 PM12/11/12
to hk...@googlegroups.com
Hi all, 

I have downloaded 

install.packages(ggplot2,dependencies=TRUE)

but it failed to produce a graph:

graph<-ggplot(dataframe, aes(x,y))

it says
Error in rename(x, .base_to_ggplot, warn_missing = FALSE) : 
  could not find function "revalue"

Does it related to my R version (2.15.2 on Mac)? I have no problem to use this package before ( much older version, on Windows).

s

Chung-hong Chan

unread,
Dec 11, 2012, 11:38:18 PM12/11/12
to hk...@googlegroups.com
Please make sure you have install the dependent package "plyr", perhaps also "scales" and "gtable".

e.g. 

install.packages(c("plyr", "ggplot2", "scales", "gtable")) 

and then maybe run 

update.packages()

To update all packages to the latest version.

Sara Fung

unread,
Dec 12, 2012, 4:07:17 AM12/12/12
to hk...@googlegroups.com
Thank you Hong, all steps followed but the same warning message still appear, any more thing I can do? I bet you have the same version of R but you don't have this problem, what would possibly go wrong with mine?

s

C.H.

unread,
Dec 12, 2012, 4:13:36 AM12/12/12
to hk...@googlegroups.com
Would you please post the output of

require(ggplot2)
sessionInfo()
> --
> You received this message because you are subscribed to the Google Groups
> "Hong Kong R User group" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hkrug/-/yhTjdwUWpf4J.
>
> To post to this group, send email to hk...@googlegroups.com.
> To unsubscribe from this group, send email to
> hkrug+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/hkrug?hl=en.

Sara Fung

unread,
Dec 12, 2012, 8:19:39 PM12/12/12
to hk...@googlegroups.com
the output is the same:

Error in rename(x, .base_to_ggplot, warn_missing = FALSE) : 
  could not find function "revalue"


On Wednesday, December 12, 2012 12:17:27 PM UTC+8, Sara Fung wrote:

Sara Fung

unread,
Dec 12, 2012, 8:20:42 PM12/12/12
to hk...@googlegroups.com
the output is same as before:

Error in rename(x, .base_to_ggplot, warn_missing = FALSE) : 
  could not find function "revalue"


Sara Fung

unread,
Dec 12, 2012, 8:22:01 PM12/12/12
to hk...@googlegroups.com
sorry, here it is:

R version 2.15.2 (2012-10-26)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
[1] ggplot2_0.9.3

loaded via a namespace (and not attached):
 [1] colorspace_1.2-0   dichromat_1.2-4    digest_0.6.0      
 [4] grid_2.15.2        gtable_0.1.2       labeling_0.1      
 [7] MASS_7.3-22        munsell_0.4        plyr_1.8          
[10] proto_0.3-9.2      RColorBrewer_1.0-5 reshape2_1.2.2    
[13] scales_0.2.3       stringr_0.6.2      tools_2.15.2      

Chung-hong Chan

unread,
Dec 12, 2012, 11:32:36 PM12/12/12
to hk...@googlegroups.com
Your problem is similar to this one


The latest version of ggplot (0.9.3) and plyr (1.8) is problematic. I need to install them from source tarball in my Linux machine.
A suggested way of solving the issue is to start a fresh R session and install ggplot and plyr again.

i.e. fire up terminal and then

R --vanilla

Then install the ggplot and plyr as usual. 

install.packages(c("plyr", "ggplot2", "scales", "gtable"), dependencies=TRUE) 

I haven't try that. It is no harm to try.

Sara Fung

unread,
Dec 13, 2012, 12:05:28 AM12/13/12
to hk...@googlegroups.com
oh good to know that I'm not the only one.  Thank you for your timely effort helping me solve the puzzle.  I followed your suggestion, closed and reopen R and checked and downloaded the updates without re-download the ggplot, and it's work and it's double checked.  So I guess it's done.  Thanks again. s 
Reply all
Reply to author
Forward
0 new messages