Re: [R] Re : Half of a heatmap

From: Rosenfeld, Jeffrey <>
Date: Mon, 25 Jun 2007 08:20:38 -0400

Thank you for your reply. I have looked at LDheatmap, but it does not seem to do what I want and seems to only work well for LD data. I was looking for something that would produce a figure identical to what heatmap.2 gives me, including the proper X and Y-axis labels and a dendogram, except that it would only have half of the map. Preferably, it would have the Color Key in the place where the other triangle of the heatmap would be, to save space.


-----Original Message-----
From: Neil Shephard [] Sent: Mon 6/25/2007 6:14 AM
Cc: Rosenfeld, Jeffrey
Subject: Re : [R] Half of a heatmap  

> I am trying to produce a heatmap of pairwise correlations, but since the matrix is
> symmetric, I only need either the upper or the lower triangle. I have scoured the
> web and R documentation, but I have not been able to find a way to produce such a
> figure. Is there a simple way to produce a heat map with only the part above or
> below the diagonal?

You might want to check out the LDheatmap() package which can generate the plots you describe. The help indicates that it accepts a matrix of pair-wise linkage disequilibrium measures, one of which is R^2 (the correlation coefficient between loci), but I suspect you could simply pass it a matrix of correlation coefficents.

Hope that helps,


"In mathematics you don't understand things. You just get used to
them."  - Johann von Neumann

Email - /
Website -
Photos -

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 25 Jun 2007 - 12:33:30 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 25 Jun 2007 - 17:32:21 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.