Hi Ian, Per your suggestion, I reinstalled R 2.9.0, then I reinstalled ggplot2 on top. The problem persists.
Here's the what happens after the installation: > qplot (carat, price, data = diamonds, alpha = I(1/10)) Warning message: In grid.Call.graphics("L_points", x$x, x$y, x$pch, x$size) : semi-transparency is not supported on this device: reported only once per page The entire record of installing ggplot2 package, ending up with the line above is in the attached file. I would think this should be reproducible with anybody else. If you have any other suggestion, I am all ears. Regards, Tena Sakai tsa...@gallo.ucsf.edu -----Original Message----- From: Ian Fellows [mailto:ifell...@gmail.com] Sent: Tue 5/5/2009 11:43 PM To: Tena Sakai Subject: Re: I updated/reinstalled ggplot2 and the trouble started... Tena, May I suggest that you do a full clean install of R 2.9.0, then install ggplot2 from cran. See if the problem persists after that. Ian On Tue, May 5, 2009 at 11:13 PM, tena <tsa...@gallo.ucsf.edu> wrote: > > Hi Hadley, > > Many thanks for your reply. > > I followed your instruction and got past the point where I > was stuck at. Namely, I was able to generate a few plots. > But as I came to the second half of section 2.4, where I > wanted to see the behavior of alpha paramter, which I > had apparently misspelled, I encountered another hindrance: > > qplot (carat, price, data = diamonds, alpha = I(1/10)) > Warning message: > In grid.Call.graphics("L_points", x$x, x$y, x$pch, x$size) : > semi-transparency is not supported on this device: reported only > once per page > > A plot was generated, but there are tic marks and labels on > each direction, but no plot at all. > > I wonder if this is yet another (hidden) package to be updated... > The warning message suggests grid, but I am hesitant to do > something without knowing what is what. I would appreciate > your instruction. > > Regards, > > Tena Sakai > > > On May 5, 5:24 pm, hadley wickham <h.wick...@gmail.com> wrote: > > Hi Tena, > > > > R isn't very good at detecting when package dependencies also need to > > be updated, so you probably need to do: > > > > install.packages(c("reshape","plyr")) > > > > And you want > > > > qplot (carat, price, data=diamonds, alpha = I(1/10)) > > > > not > > > > qplot (carat, price, data=diamonds, slpha = i(1/10)) > > > > Hadley > > > > On Tue, May 5, 2009 at 6:27 PM, tena <tsa...@gallo.ucsf.edu> wrote: > > > > > Hi Folks, > > > > > I am pretty new to R and I am even newer to ggplot. > > > > > I am using R 2.7.1, 2.8.1, and 2.9.0 on linux host and > > > what I am experiencing holds for all three. > > > > > I was just typing a few examples from the chapter 2 of > > > the book, ggplot2 --Elegant graphics for data analysis. > > > > > I typed 3 qplot lines on page 13: > > > > qplot (carat, price, data=diamonds, slpha = i(1/10)) > > > > qplot (carat, price, data=diamonds, slpha = i(1/100)) > > > > qplot (carat, price, data=diamonds, slpha = i(1/200)) > > > > > To me, the plot looked identical. I went to my R library > > > directory and looked at the date on the ggplot2 directory, > > > which was April of 2008. I decided to update the library. > > > In R, I issued: > > > > install.packages ('ggplot2', '/usr/local/Gallo/R') > > > and there was a complaint as to permission denied for > > > saving the current version (or something). I reissued > > > the command as root and this time it gave me a normal > > > return. > > > > > I was ready to retrace my steps with the book. I only got > > > to page 11 this time. Here's what happened (in all three > > > versions): > > > > set.seed (1410) > > > > dsmall <- diamonds [sample (nrow(diamonds), 100), ] > > > > > > > > qplot (carat, price, data = diamonds) > > > Error in get("new", env = FacetGrid, inherits = TRUE) > > > (FacetGrid, ...) : > > > could not find function "is.formula" > > > > > > > > > Can somebody please clue me in as to what's happening, > > > what I am doing wrong, etc? > > > > > Regards, > > > > > Tena Sakai > > > tsa...@gallo.ucsf.edu > > > > --http://had.co.nz/ > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the ggplot2 mailing > list. > To post to this group, send email to ggpl...@googlegroups.com > To unsubscribe from this group, send email to > ggplot2+unsubscr...@googlegroups.com<ggplot2%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/ggplot2 > -~----------~----~----~----~------~----~------~--~--- > >
______________________________________________ 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.