Creating 2D Scatter Plot Matrix

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
dotnet54
Posts: 1
Joined: Fri Sep 05, 2014 2:12 am
antibot: No, of course not.

Creating 2D Scatter Plot Matrix

Post by dotnet54 » Fri Sep 05, 2014 2:26 am

Hi, im working on a project to visualize datasets with higher dimensions, essentially I would like to load a dataset like Iris, and display a 2D scatter plot matrix of of the data, out put is a matix of charts similar to this picture

Image

any help/ideas is appreciated, Thanks!

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: Creating 2D Scatter Plot Matrix

Post by John Matthews » Tue Sep 09, 2014 9:01 pm

Add your individual scatter-plot ChartPanels to a panel having GridLayout, as shown in the example cited here. The same article shows several ways to control the size of the individual panels. An otherwise undecorated ChartPanel having the same preferred width and height will appear square. Use a centered JLabel for the figures along the trace.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Creating 2D Scatter Plot Matrix

Post by david.gilbert » Tue Sep 09, 2014 9:43 pm

I quite like this grid approach and it would be nice to improve the support for it in JFreeChart (and JSFreeChart).

Another good approach for these datasets is Orson Charts (effectively JFreeChart3D but...not free). The Iris datasets are included in the demo application...here is a screenshot, but you really need to run it locally and rotate the charts to appreciate the extra "dimension":

Image
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked