Results 1 to 3 of 3
  1. #1
    jetnor is offline Member
    Join Date
    Jan 2011
    Location
    London
    Posts
    17
    Rep Power
    0

    Default 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.
    Attached Thumbnails Attached Thumbnails Drawing a arc and node graph using a correlation matrix-output-matrix.jpg  

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    JFreeChart

  3. #3
    jetnor is offline Member
    Join Date
    Jan 2011
    Location
    London
    Posts
    17
    Rep Power
    0

    Default

    Hi masijade,

    I have decided to use Jung Graph Visualization instead. Thanks for suggestion though.

Similar Threads

  1. Replies: 5
    Last Post: 10-01-2010, 09:26 PM
  2. Drawing 3d graph from array table
    By Mekonom in forum Java 2D
    Replies: 3
    Last Post: 12-26-2009, 09:42 AM
  3. Drawing Graph and Add to JPanel
    By halo3 in forum NetBeans
    Replies: 17
    Last Post: 09-22-2009, 01:31 PM
  4. How to retrieve JMS message with correlation id
    By somersst in forum Java Servlet
    Replies: 0
    Last Post: 02-02-2009, 05:04 PM
  5. Graph - Breadth First search for searching a node ?
    By JavaInLove in forum Advanced Java
    Replies: 1
    Last Post: 10-06-2008, 10:17 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •