Displaying 1 result from an estimated 1 matches for "m_c1".
Did you mean:
m_1
2011 Jan 28
1
Please help -- Converting a 2D matrix to 3 columns for graphical representation
Hi,
I am trying to convert a 2D correlation matrix to 3 columns for graphical
representation:
rdata = replicate(100, rnorm(15)) #construct a 2D matrix
c1 = cor(rdata) #outputs a correlation matrix
Now I want to convert the 2D c1 to
(row#, col#, correlation)
1 1 cor1
1 2 cor2
1 3 cor3
...
2 1 cor..
Is there a way to do this?
The main reason I am doing this is to find a correlation based graph