[R] sweave bwplot error

Dirk Eddelbuettel edd at debian.org
Thu Apr 7 13:17:51 CEST 2005


On Thu, Apr 07, 2005 at 01:24:42PM +0200, Christoph Lehmann wrote:
> \begin{figure}[H]
>   \begin{center}
> <<echo=FALSE, fig=TRUE, height=5, width=10>>=
> lset(col.whitebg())
> bwplot(x2 ~x1, data = tt)
> @
>     \caption{xxx}
>   \end{center}
> \end{figure}
> 
> PROBLEM:
> the pdf of the figure is not correctly created (neither the esp) and the 
> error I get from sweave is:
> pdf inclusion: required page does not exist <0>

You need a print() statement around bwplot() -- see the FAQ.

Dirk
-- 
Better to have an approximate answer to the right question than a precise 
answer to the wrong question.  --  John Tukey as quoted by John Chambers




More information about the R-help mailing list