I will appreciate getting a sas code to produce a plot as depicted here. Thank you.
proc sgplot data=sashelp.class;
dot name/response=weight markerattrs=(symbol=trianglefilled color=blue) nostatlabel;
dot name/response=height markerattrs=(symbol=circlefilled color=red) nostatlabel;
dot name/response=age markerattrs=(symbol=circlefilled color=black) nostatlabel;
refline 80/axis=x lineattrs=(pattern=dash);
xaxis display=(nolabel);
keylegend /location=inside position=bottomright across=1;
run;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.