Dear All
I was trying to make a heatmap using library(gplots)
library("gplots")
t <-(read.table("target_file",header=TRUE))
Y <-t$ID
x<-as.matrix(t[2:7])
heatmap.2(x,col=redgreen(75),Rowv=TRUE,Colv=TRUE,scale="row",key=TRUE,
symkey=FALSE,
density.info
="none",labRow=Y,labCol=c("control","control","control","stress","stre
ss","stress"),trace="none",cexRow=0.5)
My problem is, it plots a heatmap which looks very odd, I want to
control
the size of box it make in heatmap.
Using margin=c(12,12) in the function reduces the picture as a whole
but not
the size of boxes it makes.
Can anyone help me making the pretty heatmap
I shall be very thankful for your kind help
Regards
--
Hemant Ritturaj Kushwaha
[[alternative HTML version deleted]]
Hi Hemant,
I think you want to read about the arguments 'lhei' and 'lmat',
specifically in the last paragraph of the details section of
?heatmap.2.
You will also likely want to look at ?layout, which is what these
arguments control.
Best,
Jim
hemant ritturaj wrote:
> Dear All
>
> I was trying to make a heatmap using library(gplots)
>
> library("gplots")
> t <-(read.table("target_file",header=TRUE))
> Y <-t$ID
> x<-as.matrix(t[2:7])
> heatmap.2(x,col=redgreen(75),Rowv=TRUE,Colv=TRUE,scale="row",key=TRU
E,symkey=FALSE,
> density.info
> ="none",labRow=Y,labCol=c("control","control","control","stress","st
ress","stress"),trace="none",cexRow=0.5)
>
> My problem is, it plots a heatmap which looks very odd, I want to
control
> the size of box it make in heatmap.
>
> Using margin=c(12,12) in the function reduces the picture as a whole
but not
> the size of boxes it makes.
>
> Can anyone help me making the pretty heatmap
>
> I shall be very thankful for your kind help
>
> Regards
>
--
James W. MacDonald, M.S.
Biostatistician
Hildebrandt Lab
8220D MSRB III
1150 W. Medical Center Drive
Ann Arbor MI 48109-0646
734-936-8662