title; /* clear title */ ods graphics / width=600 height=400; proc sgplot data=work.example4; vbar make / response=avg_mpg; xaxis label="Make"; yaxis label="Average &mpgVar"; run;
proc sgplot data=stagnant; scatter x=x y=y; run;
proc sgplot data=all noautolegend; scatter x=x y=y; series x=x1 y=y1 / lineattrs = graphdata2; series x=value y=density / lineattrs = graphdata1; run;
proc sgplot data=b noautolegend; yaxis label='Observed or Predicted'; refline 0.777 / axis=y label="Plateau" labelpos=min; refline 12.747 / axis=x label="Join point" labelpos=min; scatter y=y x=x; series y=yp x=x; run;
ods graphics on / reset=index imagename='sgplot1' width=4in height=3in; title1 'First SGPLOT Output'; proc sgplot data=sashelp.class; scatter x=height y=weight / group=sex; discretelegend; run; ods graphics on / imagename='sgplot2' width=4in height=3in; title1 'Second SGPLO...
goptions reset=all device=png300 nodisplay xmax=4in ymax=3in; goptions iback="&outdir.\sgplot1.png" imagestyle=fit; proc gslide; run; quit; goptions iback="&outdir.\sgplot2.png" imagestyle=fit; proc gslide; run; quit; goptions iback="&outdir.\sgplot3.png" imagestyle=fit; pro...
goptions reset=all device=sasprtc; ods listing close; ods pdf file="&outdir.\greplay_sgplot.pdf" notoc dpi=300; proc greplay igout=work.gseg nofs tc=sashelp.templt template=L2R2; treplay 1:1 2:2 3:3 4:4; run; quit; ods pdf close; ods listing;