[R] Question on qplot

Gabor Grothendieck ggrothendieck at gmail.com
Sat Jul 18 21:09:14 CEST 2009


Suggest you update everything.  Your ggplot2 is still not the most
recent.  Use the Packages | Update Packages menu and then
try again.

On Sat, Jul 18, 2009 at 2:32 PM, RON70<ron_michael70 at yahoo.com> wrote:
>
> I have updated the ggplot2 package as well as R, how got some new error.
>
>> qplot(x, z)
> Error in get("new", env = FacetGrid, inherits = TRUE)(FacetGrid, ...) :
>  could not find function "is.formula"
>
> I cannot understand what is happening with my system. Here I am providing
> the details of my system and package:
>
>> packageDescription("ggplot2")$Version
> [1] "0.8.2"
>
>> R.version.string
> [1] "R version 2.9.1 (2009-06-26)"
>
> I am using windows vista (build 6002, Service Pack 2).
>
> Please help.
>
> Thanks
>
>
> Gabor Grothendieck wrote:
>>
>> Although there is no explicit support for ggplot2 in zoo
>> currently (hopefully there will be in the future) both your
>> qplot commands do work for me using:
>>
>>> packageDescription("ggplot2")$Version
>> [1] "0.8.3"
>>> packageDescription("zoo")$Version # devel version
>> [1] "1.6-0"
>>> R.version.string # Windows Vista
>> [1] "R version 2.9.1 Patched (2009-07-16 r48939)"
>>
>> For the devel version of zoo see the installation instructions
>> at the bottom of::
>> http://r-forge.r-project.org/scm/?group_id=18
>>
>> On Sat, Jul 18, 2009 at 4:52 AM, RON70<ron_michael70 at yahoo.com> wrote:
>>>
>>> Hi, suppose I have following codes :
>>>
>>> library(zoo); library(ggplot2)
>>> dat <- matrix(rnorm(500*2), 500); dat <- zooreg(dat, start =
>>> as.Date("01/01/01", "%m/%d/%y"), frequency=1); plot(dat)
>>> head(dat); month.no <- format(index(dat), "%m"); dat1 <-
>>> cbind(coredata(dat), as.numeric(month.no))
>>>
>>> x <- dat1[,1]; y <- dat1[,2]; z <- dat1[,3]
>>>
>>>
>>> Now I draw a qplot like :
>>> qplot(x, z)
>>>
>>> It is ok........
>>> However if I reverse that like
>>> qplot(z, x)
>>> I am getting strange plot. I expected it should look just like transpose
>>> of
>>> above plot.
>>>
>>> Can anyone please clarify me why I am getting that?
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Question-on-qplot-tp24545841p24545841.html
>>> Sent from the R help mailing list archive at Nabble.com.
>>>
>>> ______________________________________________
>>> R-help at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>>> http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>>
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Question-on-qplot-tp24545841p24550610.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>




More information about the R-help mailing list