1 Attachment(s)

Drawing a arc and node graph using a correlation matrix

Hi Guys,

I am reading a data file and am calculating the Pearson's Correlation between each variable in the data file. The output that I end up with is a matrix of correlation values between each of the variables. The matrix is a NxN matrix where N is the number of the variables. Now I want to be able to draw a graph with nodes representing the variables and the arcs representing the correlation ie if the correlation value is higher than 0.7 say than draw a line between node A and B. Do you guys know of any packages or libraries which can take a data matrix in Java. Even if the package only takes a matrix of 1 and 0 would be ok for a start.

I have attached a screenshot of what the output from my program would be if I had only 3 variables.

Thanks in advance,

Jetnori.