ods html close; %let gpath=C:\; %let w=5in; %let h=3in; %let dpi=200; ods listing gpath="&gpath" image_dpi=&dpi; /*--Default 200 DPI--*/ ods graphics / reset imagename='BoxPlot_Default'; title 'Cholesterol by Death Cause (PNG 200 DPI)'; proc sgplot data=sashelp.heart noborder; vbox cholesterol / category=deathcause; yaxis display=(noline noticks) grid; xaxis display=(nolabel); run; /*--Small size 200 dpi--*/ ods graphics / reset width=&w height=&h imagename='BoxPlot_200dpi'; title 'Cholesterol by Death Cause (PNG 200 Dpi)'; proc sgplot data=sashelp.heart noborder; vbox cholesterol / category=deathcause; yaxis display=(noline noticks) grid; xaxis display=(nolabel); run; /*--Small size 300 dpi--*/ ods listing gpath="&gpath" image_dpi=300; ods graphics / reset width=4in height=2.5in imagename='BoxPlot_300dpi_4in'; title 'Cholesterol by Death Cause (PNG 300 DPI)'; proc sgplot data=sashelp.heart noborder; vbox cholesterol / category=deathcause; yaxis display=(noline noticks) grid; xaxis display=(nolabel); run; /*--Small size 600 dpi--*/ ods listing gpath="&gpath" image_dpi=600; ods graphics / reset width=&w height=&h imagename='BoxPlot_600dpi'; title 'Cholesterol by Death Cause (PNG 600 DPI)'; proc sgplot data=sashelp.heart noborder; vbox cholesterol / category=deathcause; yaxis display=(noline noticks) grid; xaxis display=(nolabel); run; /*--Small size 1200 dpi--*/ ods listing gpath="&gpath" image_dpi=1200; ods graphics / reset width=&w height=&h imagename='BoxPlot_1200dpi'; title 'Cholesterol by Death Cause (PNG 600 DPI)'; proc sgplot data=sashelp.heart noborder; vbox cholesterol / category=deathcause; yaxis display=(noline noticks) grid; xaxis display=(nolabel); run; /*--EMF Small size 200 dpi--*/ ods listing gpath="&gpath" image_dpi=200 style=pearl; ods graphics / reset width=&w height=&h outputfmt=emf imagename='BoxPlot_200dpi'; title 'Cholesterol by Death Cause (EMF)'; proc sgplot data=sashelp.heart noborder; vbox cholesterol / category=deathcause; yaxis display=(noline noticks) grid; xaxis display=(nolabel); run; /*--PDF Small size 200 dpi--*/ ods listing gpath="&gpath" image_dpi=200 style=pearl; ods graphics / reset width=&w height=&h outputfmt=pdf imagename='BoxPlot_200dpi'; title 'Cholesterol by Death Cause (PDF)'; proc sgplot data=sashelp.heart noborder; vbox cholesterol / category=deathcause; yaxis display=(noline noticks) grid; xaxis display=(nolabel); run; /*--SVG Small size 200 dpi--*/ ods html5 path='C:\Work\Blogs\Graphically Speaking\2017\Post_18_June_7_Output' file='Small_Size_200dpi.html'; ods graphics / reset width=&w height=&h outputfmt=svg imagename='BoxPlot_200dpi'; title 'Cholesterol by Death Cause (SVG)'; proc sgplot data=sashelp.heart noborder; vbox cholesterol / category=deathcause; yaxis display=(noline noticks) grid; xaxis display=(nolabel); run; /*--PNG Small size Noscale--*/ ods listing image_dpi=&dpi; ods graphics / reset width=&w height=&h noscale imagename='BoxPlot_Noscale'; title 'Cholesterol by Death Cause (PNG NoScale)'; proc sgplot data=sashelp.heart noborder; vbox cholesterol / category=deathcause; yaxis display=(noline noticks) grid; xaxis display=(nolabel) fitpolicy=split; run; title;