%let gpath=.;
%let dpi=200;
ods html close;
ods listing gpath="&gpath" image_dpi=&dpi;
/*--Box plot Color--*/
ods listing style=listing;
ods graphics / reset width=5in height=3in imagename='Box_Color';
title 'Distributiion of Cholesterol by Death Cause and Sex';
proc sgplot data=sashelp.heart nowall noborder;
vbox cholesterol / category=deathcause group=sex
clusterwidth=0.5 meanattrs=(size=7);
xaxis display=(noline nolabel noticks);
yaxis display=(noline noticks) grid;
run;
/*--Box plot BW--*/
ods listing style=journal2;
ods graphics / reset width=5in height=3in imagename='Box_BW';
title 'Distributiion of Cholesterol by Death Cause and Sex';
proc sgplot data=sashelp.heart nowall noborder;
vbox cholesterol / category=deathcause group=sex clusterwidth=0.5
meanattrs=(size=7);
xaxis display=(noline nolabel noticks);
yaxis display=(noline noticks) grid;
run;
/*--Box plot BW solid lines--*/
ods listing style=journal2;
ods graphics / reset width=5in height=3in imagename='Box_Solid_Lines';
title 'Distributiion of Cholesterol by Death Cause and Sex';
proc sgplot data=sashelp.heart nowall noborder;
vbox cholesterol / category=deathcause group=sex clusterwidth=0.5
meanattrs=(size=7) lineattrs=(pattern=solid) whiskerattrs=(pattern=solid);
xaxis display=(noline nolabel noticks);
yaxis display=(noline noticks) grid;
run;
/*--Box plot BW solid lines Legend markers--*/
ods listing style=journal2;
ods graphics / reset width=5in height=3in imagename='Box_Legend';
title 'Distributiion of Cholesterol by Death Cause and Sex';
proc sgplot data=sashelp.heart nowall noborder;
vbox cholesterol / category=deathcause group=sex clusterwidth=0.5
meanattrs=(size=7) lineattrs=(pattern=solid) whiskerattrs=(pattern=solid);
xaxis display=(noline nolabel noticks);
yaxis display=(noline noticks) grid;
keylegend / type=marker;
run;