Previous Page | Next Page

The GREPLAY Procedure

Example 3: Replaying Graphs Into a Template


Procedure Features:

GREPLAY statement options:

GOUT=

IGOUT=

NOFS

TC=

TEMPLATE=

DEVICE statement

TREPLAY statement

Sample library member: GREGRSEG

SAS/GRAPH Graphs Replayed into a Template

[SAS/GRAPH Graphs Replayed into a Template]

 Note about code
data sasuser.class (drop=name );
   length Gender $ 6;
   set sashelp.class;
   if sex="F" then Gender="Female";
      else Gender="Male";
run;
proc sort data=sasuser.class out=sasuser.class;
   by weight height;
run;
     
 Note about code
  goptions reset=all hsize=2.75in vsize=2.06in; 

 Note about code
axis1 label=none style=0 major=none value=none;
axis2 label=("Age");
axis3 label=("Height") order=50 to 75 by 5;
axis4 label=("Weight") order=50 to 150 by 25 minor=(n=1);
 Note about code
legend1 label=none value=("Male" "Female") Position=(right middle outside) across=1;
legend2 label=none value=("Male" "Female"); 
 Note about code
symbol i=join; 
 Note about code
proc gchart data=sasuser.class gout=sasuser.excat;
   vbar age/discrete hminor=0 subgroup=gender
                 inside=freq  raxis=axis1 maxis=axis2
                 noframe legend=legend1;
run;
   hbar age/ discrete sumvar=height mean
                  meanlabel="Avg.Height" vminor=0
                  raxis=axis1 maxis=axis2;
run;
   pie gender/ noheading legend=legend1 percent=inside;
run;
proc gplot data=sasuser.class gout=sasuser.excat;
    plot height*weight=gender/ vminor=1 vaxis=axis3
    haxis=axis4 legend=legend2;
run;
quit;
 Note about code
goptions reset=all hsize=5.5in vsize=4.12in; 
 Note about code
proc greplay gout=sasuser.excat igout=sasuser.excat nofs
   tc=sashelp.templt template=l2r2;
   device win;
   treplay 1:gchart 2:gchart1 3:gchart2 4:gplot;
quit; 

Previous Page | Next Page | Top of Page