Date: Mon, 21 Aug 2006 13:50:28 +0100
Reply-To: Ian Wakeling <ian.wakeling@HANANI.QISTATS.CO.UK>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Ian Wakeling <ian.wakeling@HANANI.QISTATS.CO.UK>
Subject: Re: Display graphic
Content-Type: text/plain; format=flowed; charset="Windows-1252";
reply-type=original
Yom,
The %plotit macro is a possible solution for you.
All you need is something like,
%plotit(data=mytable1,plotvars=y x,labelvar=text);
It's distributed with SAS/STAT in the macros directory
and may well be in your autocall library.
Ian.
----- Original Message -----
From: "yom" <yomsas@GMAIL.COM>
To: <SAS-L@LISTSERV.UGA.EDU>
Sent: Monday, August 21, 2006 11:36 AM
Subject: Display graphic
> Dear All,
>
> Here is my code so as to print a graphic. If you execute it you can see that
> 'mercedes' and 'renault' are plotted together and that it is not possible to
> read anything.
> Do you know if it is possible to add an option such that when moving the
> mouse on the name it display it on a 'comment box'.
> Maybe there is an easier way to solve this problem.
>
> Thank you very much in advance !
>
> yom
>
>
>
> ods html;
>
>
> data mytable1;
> input text $ x y;
> cards;
> audi 0.8 0.9
> bmw 0.7 -0.95
> volkswagen -0.7 -0.6
> skoda 1 -1
> landrover 0.9 0.95
> ferrari 0.6 -0.7
> mercedes -1 -1
> renault -0.95 -1
> ;
> run;
>
>
>
> DATA mytable2;
> set mytable1 nobs=p;
> retain xsys ysys '2';
> text=substr(text,1,4);
> color='blue';
> label y = "y"
> x = "x";
> output;
> x=0;text='';
> y=0;style='E';
> output;
> RUN;
>
> PROC GPLOT data=mytable2;
> symbol1 v='none' i=join;
> title;
> axis1 order = (-1 to 1 by 0.5) length=10CM;
> plot y*x=1/ annotate=mytable2 haxis=axis1 vaxis=axis1;
> RUN;
> goptions reset=all;
> QUIT;
>
> ods html close;
>
|