Heatmap quick questions
1
0
Entering edit mode
Daniel Brewer ★ 1.9k
@daniel-brewer-1791
Last seen 9.6 years ago
Hi, A few quick questions about heatmap that I could not find via google or the newsgroup search: 1) How can you change the font size of the row labels? At the moment they are merging. 2) Is there a simple way to have the top row of the matrix at the top of the picture rather than the other way round? 3) Is there a way to make the blocks square? Many thanks Daniel -- ************************************************************** Daniel Brewer, Ph.D. Institute of Cancer Research Email: daniel.brewer at icr.ac.uk ************************************************************** The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP. This e-mail message is confidential and for use by the addre...{{dropped}}
Cancer Cancer • 553 views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 17 hours ago
United States
Hi Daniel, Daniel Brewer wrote: > Hi, > > A few quick questions about heatmap that I could not find via google or > the newsgroup search: > 1) How can you change the font size of the row labels? At the moment > they are merging. Use the cexRow argument. > 2) Is there a simple way to have the top row of the matrix at the top of > the picture rather than the other way round? I assume you are setting Rowv=NA to keep from reordering? If so, you can just use heatmap(yourmatrix[dim(matrix)[1]:1,], otherargs). If you are not setting Rowv=NA, then the row ordering is dictated by the hierarchical clustering of the genes. I suppose you could cluster the genes first, then reorder the HC result the way you want (assuming that you are simply inverting the order), and then feed that as the argument to Rowv. > 3) Is there a way to make the blocks square? Technically, yes. Just use the right number of genes ;-D The graphics gurus might have a fix, but as it stands R tries to fit the graphics within the available plotting region, so the blocks will get flattened as much as necessary to make things fit. If you really want the heatmap to have square blocks (and just get longer), then you might want to use Mike Eisen's Cluster/Treeview software. Best, Jim > > Many thanks > > Daniel > -- James W. MacDonald, M.S. Biostatistician Affymetrix and cDNA Microarray Core University of Michigan Cancer Center 1500 E. Medical Center Drive 7410 CCGC Ann Arbor MI 48109 734-647-5623 ********************************************************** Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues.
ADD COMMENT

Login before adding your answer.

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