[R] Sweave: include a multi-page-pdf plot
Alexander Engelhardt
alex at chaotic-neutral.de
Sun Mar 27 19:12:44 CEST 2011
Hi,
I'm just starting out with Sweave, and I can't get a plot(linmod) to
display all four plots:
<< bild >>=
x1 <- runif(100)
x2 <- rexp(100)
y <- 3 + 4*x1 + 5*x2 + rnorm(100)
mod <- lm(y~x1+x2)
plot(mod)
@
Some Text
<<fig=TRUE>>=
<<bild>>
@
This plots only the first image of the four-page plot.lm() result.
I don't want to use par(mfrow=c(2,2)), but ideally I'd like to access
each one of the four plots in a different section of my LaTeX-file.
Can you tell me how to do this?
Thanks in advance,
Alex
More information about the R-help
mailing list