> >Hi all
> > Could someone please let me know how to put
> >multiple graphs on one page. I have numerous graphs,
> >one per page (.gif files) and I have to put 2 per
> >page. I am aware that using proc greplay would
> >accomplish the task but I do not know exactly how to
> >do and I do not have access to graph manuals to refer
> >to. I would really appreciate if someone out there
> >could give me a sample code. Thanks in advance.
> >Mohan
> >__________________________________________________
> >Do You Yahoo!?
> >Make international calls for as low as $.04/minute with Yahoo! Messenger
> >http://phonecard.yahoo.com/
> For clarification: do we talk about GIF (non-SAS) or do we talk about SAS
> GRAPH output? I don't know if SAS GREPLAY is the right tool for dealing
> with non SAS graphics, but for SAS GRAPH output it is good! So please tell
> us what you are doing!
It works for both: using GRAPH and then GREPLAY, you get a new graph object,
that you can export as a .GIF file, exaclty as you can with GRAPH.
I have used it few times. I then exported to GIF manually (I should say:
menually). Is there any code that could directly transform/export a GRAPH as
a .GIF file?
Oops re-read you question. You are right, not too clear. here is some code
if he needs it:
%MACRO logpred(donnee,y,x,titre);
TITLE;FOOTNOTE;
PROC LOGISTIC DATA = &donnee DESCENDING;
MODEL &y = &x
/RISKLIMITS ALPHA = 0.05 SELECTION = STEPWISE
SLSTAY = .05
SLENTRY = .30
;
OUTPUT OUT = pred pred = predprob;
TITLE1 &titre;
RUN;
PROC SORT DATA = pred;
BY &y;
RUN;
Goptions reset=(axis, legend, pattern, symbol, title, footnote) norotate
hpos=0 vpos=0 htext= ftext= ctext= target= gaccess= gsfmode=
ftext=swissb htitle=2 htext=3;
Goptions Device=WIN ctext=blue
graphrc interpol=join;
Goptions Htext=3.75 gsfmode=replace display GOUTMODE = REPLACE;
** Definitions des templates;
Proc Greplay Nofs;
Tc Templt;
tdef v1x2 des='2 graphes sur une page'
1/LLX=0 LLY=52.5
ULX=0 ULY=100
URX=100 URY=100
LRX=100 LRY=52.5
COLOR = White
2/LLX=0 LLY=0
ULX=0 ULY=47.5
URX=100 URY=47.5
LRX=100 LRY=0
COLOR = White;
END;
RUN;
GOPTIONS GUNIT = PCT FTEXT=SWISSB HTEXT=3.75;
PROC GCHART DATA = pred GOUT = g1;
TITLE2 &titre;
FOOTNOTE1 ' Probabite predite de:' &y;
VBAR predprob /TYPE = PCT NAME='predp' FRAME
MIDPOINTS = 0 0.05 0.15 0.25 0.35 0.45 0.55 0.65 0.75 0.85 0.95
1;
BY &y;
PATTERN VALUE = E;
RUN;QUIT;
PROC GREPLAY IGOUT=g1 TC=templt NOFS TEMPLATE=v1x2 GOUT=g2;
TREPLAY 1: predp
2: predp1;
Quit;
TITLE;FOOTNOTE;
%MEND;
%logpred (mad6
, mad56
, femme
prim_nc
ageq85 ageq75
mauv_san moy_sant
insatis moysatis satisfai
spmsq
avq_inca avq_aide
dinc_int dinc_ext daid_int daid_ext dinc_trv
, 'MAD56 = BIN(SIG(SOCIO-DEMO-ECO)) + BIN(SIG(SANTE))');
JP