LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 2004, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 2 Dec 2004 21:59:28 -0500
Reply-To:   "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Subject:   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