John Kane | 30 Jun 2012 16:04
Favicon

Re: Help


   Hi Hannah,
   I have run both the original code and the code copied from the email and
   both seem to work just fine.
   I don't know why you are getting that error message.   Do you have both
   ggplot2 and reshape2 loaded?  Still that should not give you the error
   message you are getting. In fact given the data I supplied, I just don't
   understand what it is trying to say.
   I cannot even find a function [1]rq.fit.br.  Perhaps some other library that
   you have loaded is masking something in ggplot2 or reshape2.  Can any more
   savvy R users comment here?
   Here is a link to the output  which I think sounds like what you want.

   [2]http://www.mediafire.com/i/?sgc2evfen5vvckb
   It  only  has two columns of data since I'm too lazy to do more but in
   principle it does any number as along at the output device can show it.
   Here  is  my sessionInfo() in case we have some serious differences in
   settings.
   sessionInfo()
   R version 2.15.1 (2012-06-22)
   Platform: i686-pc-linux-gnu (32-bit)
   locale:
    [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
    [3] LC_TIME=en_CA.UTF-8        LC_COLLATE=en_US.UTF-8
    [5] LC_MONETARY=en_CA.UTF-8    LC_MESSAGES=en_US.UTF-8
    [7] LC_PAPER=C                 LC_NAME=C
    [9] LC_ADDRESS=C               LC_TELEPHONE=C
   [11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C
   attached base packages:
   [1] stats     graphics  grDevices utils     datasets  methods   base
(Continue reading)

Peter Ehlers | 30 Jun 2012 19:29
Picon
Favicon

Re: Help

On 2012-06-30 07:04, John Kane wrote:
>
>     Hi Hannah,
>     I have run both the original code and the code copied from the email and
>     both seem to work just fine.
>     I don't know why you are getting that error message.   Do you have both
>     ggplot2 and reshape2 loaded?  Still that should not give you the error
>     message you are getting. In fact given the data I supplied, I just don't
>     understand what it is trying to say.
>     I cannot even find a function [1]rq.fit.br.
[...]

This function is in the quantreg *package*. So Hannah isn't
telling us the whole story.

Peter Ehlers

li li | 30 Jun 2012 20:59
Picon

Re: Help

The following is what I get when I run the code.

> library(ggplot2)
Loading required package: reshape
Loading required package: plyr

Attaching package: 'reshape'

The following object(s) are masked from 'package:plyr':

    rename, round_any

Loading required package: grid
Loading required package: proto
> library(reshape2)

Attaching package: 'reshape2'

The following object(s) are masked from 'package:reshape':

    colsplit, melt, recast

>
> A  <-  data.frame( m = (rep("A", 10)) , b=rnorm(10), c = rnorm(10))
> B  <-  data.frame( m = (rep("B", 10)) , b=rnorm(10), c = rnorm(10))
> C  <-  data.frame( m = (rep("C", 10)) , b=rnorm(10), c = rnorm(10))
>
> mydata  <-  rbind( A, B, C )
> names(mydata)  <-  c( "group", "k1", "k2" )
> mdata  <-  melt(mydata)
(Continue reading)


Gmane