Re: [R] density and jpeg

From: milton ruser <milton.ruser_at_gmail.com>
Date: Thu, 26 Jun 2008 13:11:13 -0300

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. Received on Thu 26 Jun 2008 - 16:21:16 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 - 18:31:45 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