Heatmap problem
1
0
Entering edit mode
@hemant-ritturaj-3016
Last seen 10.2 years ago
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]]
• 1.0k views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 2 days ago
United States
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
ADD COMMENT

Login before adding your answer.

Traffic: 649 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6