45°-Referenzlinie ueber Scatter-Plot einfuegen
Reporting & Visualisierung |
Eingetragen von Urbsy. | 18 Dezember, 2007 - 11:01
Hallo Zusammen,
bei folgendem Problem komme ich leider nicht weiter und wäre Euch für Lösungsvorschläge sehr dankbar:
Zu zeichnen ist eine Winkelhalbierende über den unten angegebenen Scatter-Plot. Leider bekomme ich entweder nur
die Winkelhalbierende oder die urspüngliche Graphik hin, beides zusammen scheint nicht richtig zu wollen...
'
goptions reset=all cback=white border;
data a;
input xvar yvar;
cards;
1 1
2 3
2 3
2 3
3 5
3 5
4 2
4 2
4 2
4 2
4 2
5 7
5 7
5 7
5 7
5 7
5 7
;
run;
proc freq data=a noprint;
tables xvar*yvar / out=freqdata;
run;
data anno;
retain xsys ysys '2' hsys '3' when 'a' color 'blue' text 'dot' function 'symbol';
set freqdata;
x=xvar; y=yvar;
size=count;output;
/*
Mit den folgenden Befehlen wollte ich eigentlich eine 45°-Linie in meiner Grapik erzeugen,
was auch funktioniert, nur werden damit meine "Bubbles" eliminiert.
function='move'; xsys='8'; ysys='8'; x=0.4; y=0.5; output;
function='DRAW'; xsys='8'; ysys='8'; color='red'; x=6; y=6; output;
*/
run;
symbol i=none v=none c=white r=10;
title1 h=1.25 'Frequency';
axis1 minor=none;
axis2 minor=none;
proc gplot data=a;
axis1 order=(1 to 7 by 1) label= ("y-Achse");
axis2 order=(1 to 7 by 1) label= ("x-Achse");
plot yvar * xvar / anno=anno vaxis=axis1 haxis=axis2 anno=anno vaxis=axis1 haxis=axis2 AUTOVREF AUTOHREF CFRAME=H000BB00;;
run;
quit;
data a;
input xvar yvar;
cards;
1 1
2 3
2 3
2 3
3 5
3 5
4 2
4 2
4 2
4 2
4 2
5 7
5 7
5 7
5 7
5 7
5 7
;
run;
proc freq data=a noprint;
tables xvar*yvar / out=freqdata;
run;
data anno;
retain xsys ysys '2' hsys '3' when 'a' color 'blue' text 'dot' function 'symbol';
set freqdata;
x=xvar; y=yvar;
size=count;output;
/*
Mit den folgenden Befehlen wollte ich eigentlich eine 45°-Linie in meiner Grapik erzeugen,
was auch funktioniert, nur werden damit meine "Bubbles" eliminiert.
function='move'; xsys='8'; ysys='8'; x=0.4; y=0.5; output;
function='DRAW'; xsys='8'; ysys='8'; color='red'; x=6; y=6; output;
*/
run;
symbol i=none v=none c=white r=10;
title1 h=1.25 'Frequency';
axis1 minor=none;
axis2 minor=none;
proc gplot data=a;
axis1 order=(1 to 7 by 1) label= ("y-Achse");
axis2 order=(1 to 7 by 1) label= ("x-Achse");
plot yvar * xvar / anno=anno vaxis=axis1 haxis=axis2 anno=anno vaxis=axis1 haxis=axis2 AUTOVREF AUTOHREF CFRAME=H000BB00;;
run;
quit;
Vielen Dank für Eure Hilfe!
Uli Urbahn
Ps: Ist es auch möglich eine 45°-Refernzlinie über einen Bubble-Plot zu zeichnen?
