[R] how to save a heatmap.2 in png /jpeg /tiff

PIKAL Petr petr.pikal at precheza.cz
Mon Sep 10 10:39:43 CEST 2012


Hi

> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Fred
> Sent: Sunday, September 09, 2012 7:45 PM
> To: r-help at r-project.org
> Subject: Re: [R] how to save a heatmap.2 in png /jpeg /tiff
> 
> Hey Jeff, sorry for the "it just doesn't work", but it's really what it
> does...
> I can't find any file called heatmap.2.png on my computer after
> creating my
> heatmap.2 (that I can see on Quartz) and typing:
> > png("heatmap.2.png")
> Maybe I should add, that I am working on mac with MAC OS X
> (v.10.8.1).!!
> 
> It is not a problem of having a picture editor open when I try to
> create this file.
> 
> Any other idea ??

I was not following this thread from beginning but does

png("heatmap.2.png")
plot(1:10)
dev.off()

produce the file named "heatmap.2.png" in your working directory?

Petr

> Thanks
> 
> Fred
> 
> 
> 
> --
> View this message in context: http://r.789695.n4.nabble.com/how-to-
> save-a-heatmap-2-in-png-jpeg-tiff-tp4642607p4642617.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> 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.




More information about the R-help mailing list