When I try the following code with the Windows graphics window, a new window is opened for each multiple of four images I produce.
par(layout(matrix(c(1,2,3,4), 2, 2, byrow = TRUE)), mar = c(2, 3, 2, 3)) for (i in 1:n) { image(... ) } When I try to do the same with Sweave to produce a pdf document, I only get one graphic with the first four graphs. How do I get the rest when n is greater than four? <<Plots, fig=TRUE, eps=FALSE, echo=FALSE, results=hide, width=6.8, height=9.8>>= par(layout(matrix(c(1,2,3,4), 2, 2, byrow = TRUE)), mar = c(2, 3, 2, 3)) for (i in 1:n) { image(... ) } Any ideas? cheers, Mikkel ______________________________________________ R-help@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