Date: Thu, 2 Dec 2004 21:59:28 -0500 "Richard A. DeVenezia" "SAS(r) Discussion" "Richard A. DeVenezia" Re: gplot question

Ben wrote: > Is it possible to draw the lines of percentiles of y on the graph?

Yes, use annotation. But each percentile ? That's 100 info obscuring lines. I boosted the number of data points to 200. With only 100 data points (precluding ties) each y is it's own percentile!

------------------------------ data x; do i=1 to 200; x=rand('normal')*10+i; y=rand('normal')*10+i; output; end; run;

proc rank data=x out=yrank(index=(ypercentile)) groups=100; var y; ranks ypercentile; run;

data anno (keep=xsys ysys x y function); set yrank; by ypercentile; retain xsys '1' ysys '2'; if first.ypercentile; * if mod(ypercentile,10)=0; * every 10th percentile; x = 0; function = 'MOVE'; output; x=100; function = 'DRAW'; output; run;

proc gplot data=x anno=anno; plot y*x; run; quit; ------------------------------

Richard A. DeVenezia http://www.devenezia.com/

Back to: Top of message | Previous page | Main SAS-L page