[R] Reg : Hello all.. help needed regarding heatmaps
R. Michael Weylandt
michael.weylandt at gmail.com
Mon Jan 30 19:47:25 CET 2012
If you don't mind using an external (but very popular) graphics
package known as ggplot2 it's super easy:
https://learnr.wordpress.com/2010/01/26/ggplot2-quick-heatmap-plotting/
I'm sure it can be done in base graphics as well, but I'll leave that
to someone else.
It's also well implemented in gplots::heatmap.2 (that is, the
heatmap.2 function from the gplots package which, name
notwithstanding, is unrelated to ggplot2). Run
if(!require(gplots)) {install.packages("gplot"); library(gplot)}
example(heatmap.2)
for some examples.
Michael
On Mon, Jan 30, 2012 at 10:47 AM, koushik gangavaram
<kgangavaram at gmail.com> wrote:
> Hello all ,
>
> I am beginner and new to this -R world. I have heard much about R and
> started working on it.
>
> I have some data of 20 business applications( y -axis) and Months( x-axis)
> and values as their score for every month . I tried to generate a heatmap
> with this data and got some good results. Can some one help me on how to
> generate the legend next to heatmap please...
>
>
> can some one send me a sample code ..?
>
>
> Some of the useful link that i found on web :
> http://www.oga-lab.net/RGM2/func.php?rd_id=gplots:heatmap.2
>
>
> Thanks in advance.
>
> [[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.
More information about the R-help
mailing list