[R] density and jpeg

2008-06-26 Thread Georg Ehret
Dear R community, I am using densityplot (lattice package) for a large dataset and wish to print it to a jpeg (the pdf is huge). R crashes consistently. Am I doing it wrong or is densityplot incompatible with jpeg? I work on a Mac, R 2.7.0. require(lattice) jpeg(test.jpeg) d[1:10] [1]

Re: [R] density and jpeg

2008-06-26 Thread milton ruser
Hi Geord, I run the code bellow without problem on R R version 2.6.2 (2008-02-08) i386-pc-mingw32 require(lattice) setwd(c:\\temp) jpeg(test.jpeg) d-runif(10) d[1:10] densityplot(~d[1:10]) dev.off() Good luck with Mac! miltinho On 6/26/08, Georg Ehret [EMAIL PROTECTED] wrote: Dear R

Re: [R] density and jpeg

2008-06-26 Thread Prof Brian Ripley
Yes, *but* (because you keep on reporting misleadingly), jpeg() on Windows is a completely different device to jpeg() on Mac OS X. jpeg() on Mac OS X with R 2.7.0 is based on Quartz, so this is a Mac OS-specific issue, for r-sig-mac and not here. Folks, please do remember that there are lots