Re: [R] density and jpeg

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Thu, 26 Jun 2008 17:59:29 +0100 (BST)

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 of different graphics devices in R, and this is one area that is most tailored to different OSes. There are no less then 4 separate jpeg() devices with a common interface. That is why we keep asking for enough details about the environment you are using.

On Thu, 26 Jun 2008, milton ruser wrote:

> 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 <georgehret_at_gmail.com> wrote:
>>
>> 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] 0.700218 0.700175 0.700357 0.700847 0.698286 0.701520 0.698158 0.699300
>> 0.698819
>> [10] 0.698521
>>> densityplot(~d[1:10])
>>
>> -> crash...
>>
>> Thank you!
>> Georg.
>> *********************
>> Georg Ehret
>> Johns Hopkins
>> Baltimore, MD
>> USA
>>
>> [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help_at_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.
>>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_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,                  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

______________________________________________
R-help_at_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.
Received on Thu 26 Jun 2008 - 17:26:21 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 26 Jun 2008 - 17:30:54 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive