[R] Sweave and ggplot2
Julien Barnier
julien at no-log.org
Mon Sep 24 23:20:32 CEST 2007
Hi,
First, thanks for your help and sorry for not following the posting
guide by not giving more detailed informations and an easily
reproducible example...
> i) Despite its annoncment in fortune("mind_read"), the mind_read()
> function is apparently not to be released in R 2.6.0, so that if
> you could just follow the posting guide and give a reproducible
> example...
Well, I hope it will be ready for R 2.7.0 !
> ii) Give the output of your sessionInfo(). You can use something
> like that in your *.rnw file:
>
> <<sessionInfo, results=tex, echo=F>>=
> toLatex(sessionInfo())
> @
Here it is :
,----
| R version 2.5.1 (2007-06-27)
| i486-pc-linux-gnu
|
| locale:
| LC_CTYPE=fr_FR at euro;LC_NUMERIC=C;LC_TIME=fr_FR at euro;LC_COLLATE=fr_FR at euro;
| LC_MONETARY=fr_FR at euro;LC_MESSAGES=fr_FR at euro;LC_PAPER=fr_FR at euro;LC_NAME=C;
| LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=fr_FR at euro;LC_IDENTIFICATION=C
|
| attached base packages:
| [1] "grDevices" "utils" "datasets" "graphics" "stats" "methods"
| [7] "base"
|
| other attached packages:
| car
| "1.2-1"
`----
> iii) What do you mean exactly by "doesn't work"? Put the source and
> the output somewhere on the web so that we can see both.
"Doesn't work" means that the generated pdf file for the figure
generated by the chunk is empty. It is not of size 0, but it has no
content and so cannot be included when running pdflatex, which exits
with an error :
,----
| !pdfTeX error: pdflatex (file ./alpha_sweave-004.pdf): PDF inclusion: required
| page does not exist <0>
| ==> Fatal error occurred, no output PDF file produced!
`----
When I try this example at work, I got an error message during Sweave
which is close from something like "warning : semitransparency not
supported by this device". When I try at home (with the given
sessionInfo), I got no warning but in both the cases the result is the
same : an empty pdf file for the figure and an error during pdflatex
compilation.
I've put online an example Rnw file and the almost empty pdf produced
here :
http://dd.nozav.org/transferts/
Thanks in advance for any help.
--
Julien
More information about the R-help
mailing list