Page 1 of 1

XY Scatter Plot with discolored points from two groups

Posted: Sun Dec 27, 2009 3:15 pm
by zizka
Having two groups (A and B) of points A(x,y) and B(x,y), with information describing a membership of each point's belonging into either A or B, I can create a standard scatter-plot. However, each point should be plotted with a color according to a point's membership: e.g., red for all A-points, blue for B-points. If not colors, it can be something else, e.g., small circles for A's and small squares for B's, or so. Can I do it somehow using DPlot? If yes, how to do it?

My data has three columns: x, y, class. x and y are real numbers, class can be expressed in any way (as words red, blue; or 0, 1; it is not a problem).

Thanks for any hints, Jan

Posted: Sun Dec 27, 2009 4:29 pm
by DPlotAdmin
It sounds like you want a bubble plot (Options>Bubble Plot), though the "membership" value will have to be a number rather than "A" or "B".

Bubble Plot

Posted: Sun Dec 27, 2009 5:33 pm
by zizka
Exactly as you write -- a bubble plot is what I want. I changed my two-valued nominal variable (in the third column) into the numeral one and received the right plot.

Thank you for your recommendation (as well as for implementing the DPlot tool -- imho, it is one of really intelligently behaving software unlike many others).

Jan