Dear Thierry, Your guess was correct. I was not aware that I needed print( ). It was not needed with plot( ). I have yet to try xyplot( ) but I suspect that the print( ) might be needed here as well. Thank you very much for your help.
Cheers, Sorn "ONKELINX, Thierry" <[EMAIL PROTECTED]> 04/08/2008 06:02 PM To <[EMAIL PROTECTED]>, <r-help@r-project.org> cc Subject RE: [R] Sweave and ggplot2 Dear Sorn, It's hard to guess what your problem is, as you don't provide any sample code. My guess is that the graphics are empty. Did you use print(qplot(...)) or just qplot(). The latter won't work. You need print(qplot(...)) HTH, Thierry ------------------------------------------------------------------------ ---- ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest Cel biometrie, methodologie en kwaliteitszorg / Section biometrics, methodology and quality assurance Gaverstraat 4 9500 Geraardsbergen Belgium tel. + 32 54/436 185 [EMAIL PROTECTED] www.inbo.be To call in the statistician after the experiment is done may be no more than asking him to perform a post-mortem examination: he may be able to say what the experiment died of. ~ Sir Ronald Aylmer Fisher The plural of anecdote is not data. ~ Roger Brinner The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data. ~ John Tukey -----Oorspronkelijk bericht----- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens [EMAIL PROTECTED] Verzonden: maandag 4 augustus 2008 6:55 Aan: r-help@r-project.org Onderwerp: [R] Sweave and ggplot2 Hi all, I've been trying to run Sweave with R code embedded - using the ggplot2 package and in particular the qplot command. There appears to be a problem in Sweave not picking up that qplot is a function. Has anybody else tried to use qplot in Sweave and have you been successful? Any help would be very much appreciated. Kind Regards, Sorn Notice: This email and any attachments may contain information\ ...{{dropped:26}} ______________________________________________ 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.