| Date: | Tue, 3 Oct 2006 14:42:04 +0300 |
| Reply-To: | mary ellis <zuno@DAT.DE> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | mary ellis <zuno@DAT.DE> |
| Subject: | plot sizing/position on pdf |
|
| Content-Type: | text/plain; format=flowed; charset="iso-8859-1";
reply-type=original |
assuming this excellent sample which I read about some months ago, posted in
c.soft-sys.sas, how could I modify this so that it would be easy to read individual
values, they are now a "bit" overlapping for the teamid (teamids range from 6 to 25)
%let seed = 1234;
data foo;
do teamId = 6 to 25;
do _n_ = 1 to 5 + 10*ranuni(&seed);
playerId + 1;
score = floor(5 + 5 * rannor(&seed));
output;
end;
end;
run;
%annomac
data annoref;
%dclanno
x=3; y=0; xsys='2'; ysys='1'; function='MOVE'; output;
y=100; color='RED'; size=16; function='DRAW'; output;
x=0; y=50; xsys='1'; ysys='2'; function='MOVE'; output;
x=100; function='DRAW'; output;
run;
goptions reset=all;
ods listing close;
ods pdf file="%sysfunc(pathname(work))\foo.pdf";
symbol1 i=HiLoB bwidth=5cm color=cxaaaaff width=100;
symbol2 i=HiLoB bwidth=10cm color=black width=15 ;
axis1 offset=(1cm,1cm) ;
proc gplot data=foo;
plot score * teamId / haxis = axis1 href=5 chref=red lhref=33 ;
plot2 score * teamId / anno = annoref;
run;quit;
ods pdf close;
ods listing;
dm results ';' results;
|