Search
Question: Heatmap problem
0
gravatar for hemant ritturaj
9.5 years ago by
hemant ritturaj150 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=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]]
ADD COMMENTlink modified 9.5 years ago by James W. MacDonald47k • written 9.5 years ago by hemant ritturaj150
0
gravatar for James W. MacDonald
9.5 years ago by
United States
James W. MacDonald47k wrote:
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 COMMENTlink written 9.5 years ago by James W. MacDonald47k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 323 users visited in the last hour