Re: [R] Question on qplot

2009-07-22 Thread baptiste auguie
try this,


library(ggplot2)
ggplot() + geom_histogram(aes(x=rnorm(100), fill=..count..))+
xlab(NULL)+
scale_y_continuous()+
opts(legend.position=none)

HTH,

baptiste

2009/7/22 RON70 ron_michae...@yahoo.com


 I have following code on qplot :

 library(ggplot2)
 ggplot() + geom_histogram(aes(x=rnorm(100), fill=..count..), xlab=,
 ylab=)

 However above code doesnot seem to remove the xlab  ylab. What is the
 correct code? I also want to remove the color-palate in the right side. Is
 there any way to do that?

 Thanks
 --
 View this message in context:
 http://www.nabble.com/Question-on-qplot-tp24615077p24615077.html
 Sent from the R help mailing list archive at Nabble.com.

 __
 R-help@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.




-- 

_

Baptiste Auguié

School of Physics
University of Exeter
Stocker Road,
Exeter, Devon,
EX4 4QL, UK

Phone: +44 1392 264187

http://newton.ex.ac.uk/research/emag
__

[[alternative HTML version deleted]]

__
R-help@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.


Re: [R] Question on qplot

2009-07-18 Thread smu
hey,

On Sat, Jul 18, 2009 at 01:52:34AM -0700, RON70 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.

Using your code I get the transposed plot.

regards,
 stefan

__
R-help@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.


Re: [R] Question on qplot

2009-07-18 Thread RON70

the plots I am getting is here :
http://www.2shared.com/file/6739681/d4c6c9d3/plot.html
and
http://www.2shared.com/file/6739673/bd50b430/plot.html

How you are getting transposed one?


smu-2 wrote:
 
 hey,
 
 On Sat, Jul 18, 2009 at 01:52:34AM -0700, RON70 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.
 
 Using your code I get the transposed plot.
 
 regards,
  stefan
 
 __
 R-help@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-tp24545841p24546574.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


Re: [R] Question on qplot

2009-07-18 Thread Gabor Grothendieck
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, RON70ron_michae...@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@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@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.


Re: [R] Question on qplot

2009-07-18 Thread David Winsemius

Also get the expected behavior with:

R version 2.9.1 Patched (2009-07-04 r48897)
x86_64-apple-darwin9.7.0  #run as 64-bit GUI version under Mac OX X  
10.5.7

 ggplot2_0.8.2   #installed as CRAN binary
 zoo_1.5-5   #imstalled as CRAN binary
 chron_2.3-30
 lattice_0.17-25

--
DW

On Jul 18, 2009, at 8:48 AM, 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, RON70ron_michae...@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@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@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.


David Winsemius, MD
Heritage Laboratories
West Hartford, CT

__
R-help@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.


Re: [R] Question on qplot

2009-07-18 Thread RON70

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, RON70ron_michae...@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@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@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@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.


Re: [R] Question on qplot

2009-07-18 Thread David Winsemius

When I try:

?is.formula

I find that that one version is in package plyr. Perhaps you did not  
install the dependencies for ggplot2, or they weren't loaded?


sessionInfo()   ## ?

--
DW.

 sessionInfo()
R version 2.9.1 Patched (2009-07-04 r48897)
x86_64-apple-darwin9.7.0

locale:
en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8

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


other attached packages:
 [1] ggplot2_0.8.2   reshape_0.8.2   plyr_0.1.9  proto_0.3-8  
zoo_1.5-5
 [6] mblm_0.11   chron_2.3-30lattice_0.17-25 Design_2.1-2 
survival_2.35-4

[11] Hmisc_3.5-2

loaded via a namespace (and not attached):
[1] cluster_1.12.0 tools_2.9.1
On Jul 18, 2009, at 2:32 PM, RON70 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, RON70ron_michae...@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@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@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@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.


David Winsemius, MD
Heritage Laboratories
West Hartford, CT

__
R-help@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.


Re: [R] Question on qplot

2009-07-18 Thread Gabor Grothendieck
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, RON70ron_michae...@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, RON70ron_michae...@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@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@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@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@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.


Re: [R] Question on qplot

2009-07-18 Thread RON70

Ah..now it is working as expected :) Package plyr was not loaded
automatically. Is it a bug for ggplot2? All other dependencies like proto,
grid, and reshape are loaded automatically.

Thanks,



David Winsemius wrote:
 
 When I try:
 
 ?is.formula
 
 I find that that one version is in package plyr. Perhaps you did not  
 install the dependencies for ggplot2, or they weren't loaded?
 
 sessionInfo()   ## ?
 
 -- 
 DW.
 
   sessionInfo()
 R version 2.9.1 Patched (2009-07-04 r48897)
 x86_64-apple-darwin9.7.0
 
 locale:
 en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
 
 attached base packages:
 [1] grid  splines   stats graphics  grDevices utils  
 datasets  methods   base
 
 other attached packages:
   [1] ggplot2_0.8.2   reshape_0.8.2   plyr_0.1.9  proto_0.3-8  
 zoo_1.5-5
   [6] mblm_0.11   chron_2.3-30lattice_0.17-25 Design_2.1-2 
 survival_2.35-4
 [11] Hmisc_3.5-2
 
 loaded via a namespace (and not attached):
 [1] cluster_1.12.0 tools_2.9.1
 On Jul 18, 2009, at 2:32 PM, RON70 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, RON70ron_michae...@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@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@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@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.
 
 David Winsemius, MD
 Heritage Laboratories
 West Hartford, CT
 
 __
 R-help@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-tp24545841p24550961.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


Re: [R] Question on qplot

2009-07-18 Thread David Winsemius


On Jul 18, 2009, at 3:13 PM, RON70 wrote:



Ah..now it is working as expected :) Package plyr was not  
loaded
automatically. Is it a bug for ggplot2? All other dependencies  
like proto,

grid, and reshape are loaded automatically.


Before throwing in the bug flag, you should start a fresh R session,  
update ggpot2 and plyr and see whether it now loads properly.


--
DW


Thanks,



David Winsemius wrote:


When I try:

?is.formula

I find that that one version is in package plyr. Perhaps you did not
install the dependencies for ggplot2, or they weren't loaded?

sessionInfo()   ## ?

--
DW.


sessionInfo()

R version 2.9.1 Patched (2009-07-04 r48897)
x86_64-apple-darwin9.7.0

locale:
en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
 [1] ggplot2_0.8.2   reshape_0.8.2   plyr_0.1.9  proto_0.3-8
zoo_1.5-5
 [6] mblm_0.11   chron_2.3-30lattice_0.17-25 Design_2.1-2
survival_2.35-4
[11] Hmisc_3.5-2

loaded via a namespace (and not attached):
[1] cluster_1.12.0 tools_2.9.1
On Jul 18, 2009, at 2:32 PM, RON70 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, RON70ron_michae...@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@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@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@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.


David Winsemius, MD
Heritage Laboratories
West Hartford, CT

__
R-help@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-tp24545841p24550961.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


David Winsemius, MD
Heritage Laboratories
West Hartford, CT

__
R-help@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,