I am trying to create a scatter plot with group by condition. In the below example I have some data points(of continuous variable) are common between the categorical variable MAKE. So the data points are getting overlayed which is making me not to identify if the graph represents presence of both the variables or just one.
How to avoid it by either using two different symbols in SGPLOT procedure, like the way we can use in GPLOT . Sample code of SGPLOT I used:
proc sgplot data=sashelp.cars(where=(make in ('Dodge', 'Chrysler')));
scatter Y=mpg_city X=mpg_highway / group=make markerattrs=(symbol=plus);
run;
I know that the below code works, but I want to use SGPLOT instead of GPLOT:
ods listing close;
SYMBOL1 VALUE=dot color=bib;
SYMBOL2 VALUE=square color=brown;
proc gplot data=sashelp.cars(where=(make in ('Dodge', 'Chrysler')));
plot mpg_city * mpg_highway =make ;
run;
Thanks in advance.