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.
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;
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.
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?
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.