136 Producing High-Quality Figures Using SAS/Graph
®
and ODS Graphics
xaxis values = (0.5 to 12.5 by.5) label = “Hours at Each
Study Day”
tickvalueformat = timedf. display = (noticks);
yaxis values = (0 to 40 by 5) label = “IOP For New Drug Group
(mm Hg)”;
run;
quit;
** Put the two figues by treatment group in one page using
SGPANEL;
ods listing gpath = “&outloc.”;
ods graphics/reset = all width = 8in height = 6in noborder
OUTPUTFMT = &OUTPUTFMT. imagename = “SGFig7_3”;
title1 “Figure7.3 Spaghetti Plot of IOP for All Subjects”;
title2 “With Two Treatments Displayed in One Page”;
footnote1 “&pgmpth.”;
proc sgpanel data = iop_time noautolegend sganno = anno_label2;
panelby trtnum/rows = 2;
series x = time y = iop/group = subjid lineattrs = (color ...