Hi Ingo Your code worked for me and I did not lose the title. Not much help I know but my session details are below to compare. Windows XP ...
Regards JS > sessionInfo() R version 2.6.0 (2007-10-03) i386-pc-mingw32 locale: LC_COLLATE=English_United Kingdom.1252;LC_CTYPE=English_United Kingdom.1252;LC_MONETARY=English_United Kingdom.1252;LC_NUMERIC=C;LC_TIME=English_United Kingdom.1252 attached base packages: [1] stats graphics grDevices datasets utils methods base other attached packages: [1] lattice_0.17-1 RWinEdt_1.7-8 loaded via a namespace (and not attached): [1] grid_2.6.0 > --- John Seers Institute of Food Research Norwich Research Park Colney Norwich NR4 7UA tel +44 (0)1603 251497 fax +44 (0)1603 507723 e-mail [EMAIL PROTECTED] e-disclaimer at http://www.ifr.ac.uk/edisclaimer/ Web sites: www.ifr.ac.uk www.foodandhealthnetwork.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ingo Holz Sent: 15 November 2007 11:34 To: r-help@r-project.org Subject: Re: [R] problem with png() Dear Brian, sorry, library(lattice) is loaded, when I start R, so I forgot to add this. I get "Ingo's title" if I plot directly to the screen. However, I do not get it if I use png() or I lose it if I save from the plot (screen). Ingo On 15 Nov 2007 at 10:30, Prof Brian Ripley wrote: > Works for me when I add the library(lattice) you omitted .... > > Since effectively all png() is doing is copying the screen, the > problem is unlikely to be in png(). Most such problems are when there > is not enough space to include labels, and you need to adjust margins or pointsize. > > On Thu, 15 Nov 2007, Ingo Holz wrote: > > > Hi, > > > > I am runing R2.6.0 (2007-10-03) on WindowsXP. > > > > If I use png() to save a plot I lose the main title. > > > > An example: > > > > ########################## > > outfile <- "outfile.png" > > > > p11 <- histogram( ~ height | voice.part, data = singer, > > xlab="Height", main="Ingo's title") > > p2 <- histogram( ~ height, data = singer, xlab = "Height") > > > > png(outfile, width=800, height=800) > > print(p11, split=c(1,1,1,2), more=TRUE) print(p2, split=c(1,2,1,2)) > > dev.off() > > > > ######################## > > > > In my "outfile.png" I do not see "Ingo's title". > > I know that it is not possible to reproduce this "error" on LINUX. > > It seems not possible on Windows, either. > > > Thank you for your help. > > Ingo > > > > ______________________________________________ > > R-help@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > > http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > > > -- > Brian D. Ripley, [EMAIL PROTECTED] > 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 ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.