172 Producing High-Quality Figures Using SAS/Graph
®
and ODS Graphics
data chg_sum;
set chg_stat;
where visit > 1 and trtnum ne. and bsl_c ne.;
format bsl_c bsldf. mean 4.1;
meanlabelpos = mean+0.75;
drop _FREQ_ _TYPE_;
run;
** Make custom box plots to extend the whiskers to the 10th
and 90th percentiles;
ods html close;
ods listing style = htmlblue gpath = “&outloc.” image_dpi = 150;
ods graphics/reset = all width = 8in height = 6in noborder
imagename = “Fig_9_1b”;
title1 “Figure9.1 Treatment Effect by Baseline IOP at Week 12”;
footnote1 “&pgmpth.”;
proc sgplot data = chg_sum nocycleattrs;
where visit = 4;
highlow x = bsl_c high = p90 low = p10/group = trtnum
groupdisplay = cluster
clusterwidth = 0.7;
highlow x = bsl_c high = q3 low = median/group ...