[R] png()/jpeg()
Wilkinson, Mark
Mark.Wilkinson at stjude.org
Fri Jan 31 21:30:03 CET 2003
Sorry:
_
platform i686-pc-linux-gnu
arch i686
os linux-gnu
system i686, linux-gnu
status
major 1
minor 6.1
year 2002
month 11
day 01
language R
Mark Wilkinson
Informatics Analyst
St. Jude Children's Research Hospital
Department of Pharmaceutical Sciences
The opinions expressed here are my own and do not necessarily represent
those of St. Jude Children's Research Hospital.
-----Original Message-----
From: ripley at stats.ox.ac.uk [mailto:ripley at stats.ox.ac.uk]
Sent: Friday, January 31, 2003 2:24 PM
To: Wilkinson, Mark
Cc: R-help (E-mail)
Subject: Re: [R] png()/jpeg()
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