It is possible to overlay a gchart and a gplot output
by using proc greplay and put both of them in the same
panel. But it is very hard to align their axis.

Anybody want to play around the following code and find
a way to align the  axis???

data xx;
do x=-5 to 5 by 0.2;
y=pdf('NORMAL',x);
output;
end;

data yy;
do x=1 to 10000;
y=rannor(x);
output;
end;

axis1 order=(0 to 0.5 by 0.1);
axis2 order=(0 to 1000 by 200);
symbol i=j;

proc gplot data=xx gout=gcat;
plot y*x / vaxis=axis1;

proc gchart data=yy gout=gcat;
vbar y / axis=axis2 midpoints=-5 to 5 by 0.2;
run;

title ' ';
proc greplay igout=gcat tc=sashelp.templt nofs;
   template whole;
   treplay 1:gchart
           1:gplot;
quit;


Thanks

Ya Huang

-----Original Message-----
From: Crystal Vierhout [mailto:vierhout@UNITY.NCSU.EDU]
Sent: Monday, June 18, 2001 5:47 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: GRAPH


Does anyone know how to put a gplot (line) in the same graph as a box plot?
PROC SHEWHART DATA=anno;
BOXCHART ( RM1 ) * yearmon /
CAXIS=BLACK
HAXIS=axis1
VAXIS=axis2
WAXIS=1
CFRAME=LTGRAY
SERIFS NOLIMITS
ANNO=ANNO
CBOXES=BLACK
CBOXFILL=CYAN
;
PROC GPLOT DATA=ALLWRITE.HISTORY;
WHERE HERDCODE=23360268;
PLOT RM1*TESTDATE;
SYMBOL V=STAR I=JOIN;
axis1 label=(HEIGHT=12pt JUSTIFY=CENTER );
axis2 label=(HEIGHT=12pt JUSTIFY=CENTER );
RUN;