[R] How to draw a big heatmap?

Uwe Ligges ligges at statistik.tu-dortmund.de
Sat Dec 5 20:03:56 CET 2009



Ning Ma wrote:
> Hi everyone. How can I draw a big heatmaps?
> 
> png("foo.png",10000,10000)
> heatmap(x)
> dev.off()
> 
> where x is a big matrix, say 200*200.
> 
> The code above generates a small heatmap in the middle of the png file
> and leaves big margins. I expect it to take up more space so that the
> labels are not overlapping.



Without having looked in detail -  I cannot even allocate enough space 
for a 10000x10000 and you certainly do not want to produce some 300Mb 
file, do you?
Anway, to proceed, decrease the size of the margins, see ?par.

Uwe Ligges


> Thanks in advance.
> 
> ______________________________________________
> 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