[R] png()/jpeg()
ripley@stats.ox.ac.uk
ripley at stats.ox.ac.uk
Fri Jan 31 21:24:03 CET 2003
It really would help to know the platform here: Windows and Unix have
separate implementations. On Windows with R 1.6.2 there is no overlap
that I can see.
Also the version of R, please.
On Fri, 31 Jan 2003, Wilkinson, Mark wrote:
> When I execute the following code, it works just like I want it to: three
> pages of nine (or fewer) plots. However, when I execute the code with the
> first and last lines uncommented, I get three pages (files), but the 2nd &
> 3rd pages have overlapping plots. It's like a new page wasn't created.
>
> I'm pretty sure I've either misplaced or left out a crucial call to some
> function, but I'm not sure where. Please help.
>
>
> #png(width=937, height=703, pointsize=15)
> for (i in seq(1, 24, 9)) {
> par(mfrow=c(3, 3))
>
> for (gt in i:min((i+8), 24)) {
>
> plot(density(rnorm(1000)))
>
> for (j in 1:20) {
> lines(density(rnorm(1000)), lty=4, col="gray")
> }
> }
> }
> #dev.off()
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list