John Kane | 30 Jun 2012 21:41
Favicon

Re: Help

It looks like we have different versions of software loaded.
I have R version 2.15.0 (2012-03-30) 

My packages.
reshape2_1.2.1 ggplot2_0.9.0

Hannah's packages.
R version 2.12.2 (2011-02-25)
 quantreg_4.71 SparseM_0.89  reshape2_1.1  ggplot2_0.8.9 proto_0.3-9.2
[6] reshape_0.8.4 plyr_1.6

It looks like quantreg is causing a problem since Peter says that the function is in the quantreg *package*.

The first step would probably be to make sure that quantreg is not loaded and try the code again.  It
"probably" would work with an older version of ggplot2 and the old version of reshape.  The command :
unattach(package::quantreg) should work.  

Retry the code and see what happens.

However I I think that you need to upgrade your version of R, and both  ggplot2 and reshape2.  .  If I remember
correctly your version of ggplot2 is loading reshape and plyr automatically as you mention below.  The
newer version does not and one need to explicitly load reshape2.and plyr.  So  it is possible that 
reshape_0;8.4 is masking reshape2_1.2.1 which can cause problems.

I'd suggest upgrading R,  , make sure that quantreg is not being loaded automatically, or if it is unattach
it( see above|),  and then upgrade both reshape2 and ggplot to to the most recent versions and see what
happens running the code from my first post.

Best of luck.

(Continue reading)

li li | 1 Jul 2012 04:30
Picon

Re: Help

Hi John,
  It worked. Thanks a lot!
    Hannah

2012/6/30 John Kane <jrkrideau <at> inbox.com>

> It looks like we have different versions of software loaded.
> I have R version 2.15.0 (2012-03-30)
>
> My packages.
> reshape2_1.2.1 ggplot2_0.9.0
>
> Hannah's packages.
> R version 2.12.2 (2011-02-25)
>  quantreg_4.71 SparseM_0.89  reshape2_1.1  ggplot2_0.8.9 proto_0.3-9.2
> [6] reshape_0.8.4 plyr_1.6
>
>
> It looks like quantreg is causing a problem since Peter says that the
> function is in the quantreg *package*.
>
> The first step would probably be to make sure that quantreg is not loaded
> and try the code again.  It "probably" would work with an older version of
> ggplot2 and the old version of reshape.  The command :
> unattach(package::quantreg) should work.
>
> Retry the code and see what happens.
>
> However I I think that you need to upgrade your version of R, and both
>  ggplot2 and reshape2.  .  If I remember correctly your version of ggplot2
(Continue reading)


Gmane