[R] sweave bwplot error
Achim Zeileis
Achim.Zeileis at wu-wien.ac.at
Thu Apr 7 13:09:34 CEST 2005
On Thu, 07 Apr 2005 13:24:42 +0200 Christoph Lehmann wrote:
> Hi
> I use sweave and have a problem with the following figure, but not
> with other figures:
>
> tt <- data.frame(c("a", "b", "c"), c(1.2, 3, 4.5))
> names(tt) <- c("x1", "x2")
> bwplot(x2 ~x1, data = tt)
>
> ok now in sweave:
>
> \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>
This is covered by FAQ 7.22. (you need to print() the plot)
Z
> thanks for help
>
> christoph
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
More information about the R-help
mailing list