Hello List

I was wondering if it is possible to make the individual 'tiles' in a heatmap 
larger. Often when I plot heatmaps and want to label the rows with eg gene 
names I either have to shrink the text or leave it out altogether as it becomes 
so small as to be unreadable. I wondered if there was a way to make the 'tiles' 
deeper and therefore allow more room for the row labels.

I apologise if this is not entirely clear but the toy code below might 
illustrate the problem.

library(hgu133plus2.db) 
# fake up some data
testMat <- matrix(rnorm(4500, 4, 2), 150, 30)
testMat[,15:30] <- testMat[,15:30]*4 # clear differnce

geneNames <- as.list(hgu133plus2SYMBOL) # get some gene names
rownames(testMat) <- stack(sample(geneNames, 150))[,1] # relabel the matrix

heatmap(testMat) # row labels overlap

Best

Iain

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to