[R] heatmap aspect ratio

Gregoire Thomas hb8hb8 at gmail.com
Wed Dec 7 12:30:07 CET 2005


You can change the code of "layout":
< layout(lmat, widths = lwid, heights = lhei, respect = TRUE)
> layout(lmat, widths = lwid, heights = lhei, respect = FALSE)

(best to create a new function "my.layout" with the modified code)


Jacob Michaelson wrote:

>Hi all,
>
>Does anyone know of a fairly easy way to "stretch" a heatmap  
>vertically?  I've got 42 arrays and would like to be able to see as  
>many significant genes as possible (right now I can only get 50 genes  
>with it still being readable).  In some comparisons there are several  
>hundred significant genes.
>
>I've fiddled with the "asp" argument, but that doesn't give the  
>results I'm looking for -- only scales the images, not the dendrograms.
>
>Is there any way to make the heatmap rectangular rather than square  
>without hacking the heatmap function itself (which is where I'm  
>headed next)?
>
>Thanks in advance,
>
>Jake
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
>  
>




More information about the R-help mailing list