01-04-2012 12:48 PM
I can change the function to 'point' and get a tiny point in the attached code (text file), but I'm missing some critical detail to get an actual symbol of any size or type out of this.
My original intent was to set up something so that a particular and unique point from a data set gets a large, special, and unique symbol so that receipients of the graph can easy see where one particular point lies in relation to all the others.
Grateful for any suggestions.
01-04-2012 02:38 PM
data wc; input grp $ 5. height weight; datalines; east 55 125 east 60 175 west 62 175 south 55 135 north 62 195 west 50 115 ; run; goptions reset=all gunit=pct ftext='calibri' htext=2; symbol v=dot h=2; axis1 label=(a=0 "Weight") order=100 to 200 by 10; axis2 label=(angle=90 "Height") order=40 to 100 by 10; legend1; legend2; data singlepoint (keep= xsys ysys hsys function style color size x y); set wc ; xsys = '2'; ysys = '2'; hsys = '3'; function ='symbol'; style = 'marker'; color ='black'; size=10; x =100; y =50; when = 'A'; run; proc gplot data=wc anno=singlepoint; plot height*weight =grp / haxis=axis1 vaxis=axis2 legend=legend1 anno=singlepoint ; run; quit;
01-04-2012 02:43 PM
One way to annotate a 'dot' and have control over the size is to use the 'pie' function, and control the size (radius).
Alternately, you can use the annotate 'label' function, and specify any font you want (via the style variable), and then use any character of that font.
01-05-2012 09:29 AM
Your options might involve placing text from the MARKER font or use PROC GFONT to create a graphic font from scratch to show what you want .
The %LABEL annotate macro would be the way to use either of these.
01-05-2012 11:46 AM
Thanks to you both for your replies. The pie function did not work, but the label function did, thanks! I'm not (yet) into macros, but I'll keep that one in mind
I have noticed that in my x-setting statement, the x is in blue, while the y in the y-setting statement is in black. Is this normal - why would SAS treat x as a key word?