Re: [R] How to save heatmap as image or pdf

From: Kevin Wright <kw.stat_at_gmail.com>
Date: Mon, 28 Mar 2011 19:55:50 -0500

?pdf

On Mon, Mar 28, 2011 at 12:57 PM, chakri_amateur <chakri2sai_at_yahoo.co.in>wrote:

> Hello Everyone,
>
>
> I am using R for creating heatmap from a square matrix. Below is my script
> to do so
>
>
> my_map <- read.csv("Desktop/input.csv", sep=",")
>
> my_matrix <- data.matrix(my_map)
>
> my_heatmap <- heatmap(my_matrix, Rowv=NA, Colv=NA, col = cm.colors(256),
> scale="column", margins=c(5,10))
>
>
> I get a beautiful plot as output, but I could not save this plot as an
> image. I would like it to be in either jpg/png/svg/bitmap/ or PDF format.
> Can some one advice me how to write this output to file ?
>
>
> I am using R 2.10.1 in Ubuntu 10.04
>
>
> TIA
>
>
> Chakri
>
>
>
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/How-to-save-heatmap-as-image-or-pdf-tp3412542p3412542.html
> Sent from the R help mailing list archive at Nabble.com.
> [[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 Tue 29 Mar 2011 - 00:59:41 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 Tue 29 Mar 2011 - 07:30:25 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