ods graphics / width=300px height=250px; /* SAS program to accompany the article "Set attributes of markers in PROC SGPLOT by using ODS style elements" published 11APR2016 by Rick Wicklin, The DO Loop, http://blogs.sas.com/content/iml/2016/04/11/attributes-sgplot-style-elements.html */ ods layout gridded columns=2 advance=table; proc sgplot data=sashelp.cars; title "Vehicles: All Origins"; scatter x=wheelbase y=weight / markerattrs=(symbol=CircleFilled) group=origin; xaxis min=90 max=150 grid; yaxis min=1800 grid valueshint values=(2000 to 7000 by 1000); keylegend / location=inside position=topleft across=1 opaque; run; proc sgplot data=sashelp.cars; title "Vehicles: Origin=USA only"; where origin="USA"; scatter x=wheelbase y=weight / markerattrs=(symbol=CircleFilled); xaxis min=90 max=150 grid; yaxis min=1800 grid valueshint values=(2000 to 7000 by 1000); run; ods layout end; proc sgplot data=sashelp.cars; title "MARKERATTRS = GraphData3"; where origin="USA"; scatter x=wheelbase y=weight / markerattrs=GraphData3; xaxis min=90 max=150 grid; yaxis min=1800 grid valueshint values=(2000 to 7000 by 1000); run; proc sgplot data=sashelp.cars; title "MARKERATTRS = GraphData3"; title2 "(symbol=CircleFilled)"; where origin="USA"; scatter x=wheelbase y=weight / markerattrs=GraphData3(symbol=CircleFilled); xaxis min=90 max=150 grid; yaxis min=1800 grid valueshint values=(2000 to 7000 by 1000); run; title; ods layout gridded columns=2 advance=table; proc sgplot data=sashelp.cars; title "Vehicles: All Origins"; scatter x=wheelbase y=weight / markerattrs=(symbol=CircleFilled) group=origin; xaxis min=90 max=150 grid; yaxis min=1800 grid valueshint values=(2000 to 7000 by 1000); keylegend / location=inside position=topleft across=1 opaque; run; proc sgplot data=sashelp.cars; title "Vehicles: Origin=USA only"; where origin="USA"; scatter x=wheelbase y=weight / markerattrs=GraphData3(symbol=CircleFilled); xaxis min=90 max=150 grid; yaxis min=1800 grid valueshint values=(2000 to 7000 by 1000); run; ods layout end;