Date: Mon, 21 Aug 2006 12:36:49 +0200
Reply-To: yom <yomsas@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: yom <yomsas@GMAIL.COM>
Subject: Display graphic
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
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;