scatterplots in gama

26 views
Skip to first unread message

Srirama Bhamidipati

unread,
Apr 24, 2014, 11:48:44 AM4/24/14
to gama-p...@googlegroups.com
Hi,

I am currently exporting a csv and drawing a scatterplot in excel. Is there any scatterplot chart in GAMA ? or if anybody has made  use of R via GAMA to plot scatterplots ?

many thanks,
srirama

Philippe Caillou

unread,
Apr 24, 2014, 12:17:14 PM4/24/14
to gama-p...@googlegroups.com
Hi,

Two answer for that right now:
- There should be a simple method, use a xy chart with dot stye, like this:
display scatter
{
chart "scatterplot" type:xy 
{
data "test" value:[[1,3],[2,2],[4,1],[3,5],[6,4],[7,6],[1.5,7],[1.8,8],[3.5,9],[1.2,10],[0.11,11],[11,12]] style:dot color:°black;
}
}

However:
-- First, thanks for the question, I found that there is a bug right now... The style: dot is not working... I am on it :) 
-- Second, and most importantly, you can not have two points with the same x value, which can be problematic for scatterplots.

So, second solution, datalist:
display nbantsdisp2
{
chart "scatterplot" type:xy 
{
datalist value:[[[1,3],[1,2],[1,1],[1,5],[1,4],[1,6],[1,7],[1,8],[1,9],[1,10],[1,11],[1,12]]] inverse_series_categories:true;
}
}

However, it creates a serie for each point, which can be a little confusing (each point has a different color and marker). If you don't (inverse_series_categories:false), you have the same problem than with data statement (no identical x value)..

I will try to fix quickly the style:dot problem, and see if I can do something for the more general problem (no duplicate x)...

Philippe 




--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To post to this group, send email to gama-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/gama-platform.
For more options, visit https://groups.google.com/d/optout.

Arnaud Grignard

unread,
Apr 24, 2014, 12:17:45 PM4/24/14
to gama-platform
A kind of 3D scatterplot

Models/Features/Color/RGB_to_XYZ.gaml


--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To post to this group, send email to gama-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/gama-platform.
For more options, visit https://groups.google.com/d/optout.

Srirama Bhamidipati

unread,
Apr 24, 2014, 12:42:53 PM4/24/14
to
Hi,

Thank you for the responses. I am plotting a kind of calibration chart in terms of predicted vs actual, which " ideally " should have maximum overlaps of x and y :)  .... although I am sure I haven't got my code correct to have perfect alignment, but yes, my output I expect to have duplicate x and also y.

many thanks, I will now look into your suggestions.

regards,
Sri
Reply all
Reply to author
Forward
0 new messages