heatmap2 in R, figure doesn't show column name.
1
0
Entering edit mode
6.4 years ago
jeongmeani • 0

Hi

I have to make Heatmap using microarray data. this data have about 10,000 genes so the figure i made is large that size is 500*35000. the number of samples are 6.

but the column name(sample name) of figure is cut .

my code is

heatmap2(as.matrix(heatmap_input[,c(2:ncol(heatmap_input))]),,trace="none",scale=zscore,lhei=c(1,5),lwid=cf(0.5,4),margins=c(2,10)cexRow=0.5,cexCol=0.9,)

and image is below.

enter image description here

Please help me.

heatmap R • 2.7k views
ADD COMMENT
1
Entering edit mode

You missed a comma before cexRow and I don't think the one after cexCol=0.9 is needed.

Try to play with notecex, cexRow and cexCol

You want to display 10 000 genes on a single heatmap ? It's ambitious

ADD REPLY
0
Entering edit mode
6.4 years ago

Sometimes in graphics device you can't see all stuff from your heatmaps. So, try exporting it in pdf and play with dimensions and margins.

ADD COMMENT

Login before adding your answer.

Traffic: 2487 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