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" <Thierry.ONKELINX@inbo.be> 
04/08/2008 06:02 PM

To
<Sorn.Norng@dpi.vic.gov.au>, <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
Thierry.Onkelinx@inbo.be 
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: r-help-bounces@r-project.org [mailto:r-help-bounces@r-project.org]
Namens Sorn.Norng@dpi.vic.gov.au
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}}

