XY Scatter Plot with discolored points from two groups
Posted: Sun Dec 27, 2009 3:15 pm
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
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