proc sgplot data=New; scatter x=Minutes y=Prob / group=Group; discretelegend; run;
proc sgplot data=out noautolegend; yaxis values=(-10 to 10 by 5); xaxis values=(-15 to 15 by 5); scatter y=y x=x / group=cluster Markerchar=cluster; by _NJOIN_; run;
title2 'Plot of DENSITY*X=CLUSTER'; proc sgplot data=out; scatter y=density x=x / group=cluster datalabel=_obs_; run;
title2 'Plot of DENSITY*X=CLUSTER with TRACE and THRESHOLD=0.55'; proc sgplot data=out; scatter y=density x=x / group=cluster datalabel=_obs_; run;
proc sgplot; scatter y=y x=x; run;
proc sgplot data=out noautolegend; scatter y=y x=x / group=cluster markerchar=cluster; by _r_; run;
/*--Legend default--*/ ods graphics / reset width=5in height=3in imagename='LegendDefault'; title 'MSRP by Horsepower'; proc sgplot data=sashelp.cars(where=(type eq 'Sedan')); styleattrs axisextent=data; reg x=horsepower y=msrp / cli clm degree=2; run;
/*--Legend Line Length--*/ ods graphics / reset width=5in height=3in imagename='LegendLine'; title 'MSRP by Horsepower'; proc sgplot data=sashelp.cars(where=(type eq 'Sedan')); styleattrs axisextent=data; reg x=horsepower y=msrp / cli clm degree=2; keylegend / linelength=32; run;
/*--Legend Line Length and Swatch--*/ ods graphics / reset width=5in height=3in imagename='LegendLineScale'; title 'MSRP by Horsepower'; proc sgplot data=sashelp.cars(where=(type eq 'Sedan')); styleattrs axisextent=data; reg x=horsepower y=msrp / cli clm degree=2; keylegend / linelength=32 ...
/*--Legend Line Length and Swatch--*/ ods graphics / reset width=5in height=3in imagename='LegendLineAspect'; title 'MSRP by Horsepower'; proc sgplot data=sashelp.cars(where=(type eq 'Sedan')); styleattrs axisextent=data; reg x=horsepower y=msrp / cli clm degree=2; keylegend / linelength=32...