Skip to content

Square matrix plot

2 messages · Finocchiaro Giacomo, Adaikalavan Ramasamy

#
Hi,

having a matrix where rows=n and cols=m, I calculated the spearman 
correlation values of the matrix, this generated a square matrix m x m.
Dose anyone knows how can I create a plot similar to this

http://bio.ifom-firc.it/User/finoc/ask.png ( produced with hierarchical 
cluster explorer)

using R? I would like to have a range of colors from green(-1) to 
red(+1)  proportional to the correlation value calculated. Thanks a lot. 
Regards

				Giacomo Finocchiaro
#
The URL that you sent is not working. Can you please check ?

If you mean 2 dimensional hierarchical clustering as often used in
microarrays, then see help("heatmap"). There was a discussion last week
about using red-green for heatmap. See
http://tolstoy.newcastle.edu.au/R/help/05/08/9714.html

Or if you want to want to plot one column against another, then see
help("pairs").

Regards, Adai
On Mon, 2005-08-08 at 19:42 +0200, Finocchiaro Giacomo wrote: