BookmarkSubscribeRSS Feed
Ken_oy
Fluorite | Level 6
We have "star", "Circle", "Square", "Diamond", etc as options in symbol statement.

Do we have any "Solid Diamond", "Solid Square" options?
Where can I find a full list of all these options?

Thanks a lot!
4 REPLIES 4
Paige
Quartz | Level 8
If you hit F1 to open SAS Help, and in the Index tab, search for SYMBOL Statement Syntax, you will find a table (scroll down) showing the value and the symbol. Message was edited by: Paige
GraphGuy
Meteorite | Level 14
Here's a quick sample, showing the current empty 'diamond' shape:

symbol1 v=diamond h=7pct c=red;
proc gplot data=sashelp.class;
plot height*weight=1;
run;

I believe several filled markers, which you can specify directly on the symbol statement's "value=" are being added in v9.3, such that you could specify
something like ...

symbol1 v=diamondfilled h=7pct c=red;


But, in the meantime, you can specify any font character that you might have
access to (especially in v9.2 sas, which also supports unicode characters).
Here is an example, using a solid diamond from the Windows Wingdings font,
(character '75'-hex) for example.

symbol1 font="wingdings" v='75'x h=7pct c=red;
proc gplot data=sashelp.class;
plot height*weight=1;
run;
Cynthia_sas
SAS Super FREQ
Hi:
The answer depends on whether you are using the "G" procedures or device-based SAS/GRAPH procedures and are specifying the symbol with the SYMBOL statement:
http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/symbolchap.htm#global-symbol...
and if the symbol you want is not in the above list, then you can use the FONT= option with a specific hex value to specify a font and symbol, as described here
http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/symbolchap.htm#a000725809
[pre]
symbol font="Albany AMT" value="80"x; /* hexadecimal code for the Euro symbol */
symbol font="Monotype Sorts" value="s"; /* character code for a filled triangle */
[/pre]

or whether you're using the "SG" procedures or template-based Statistical Graphics procedures:
http://support.sas.com/documentation/cdl/en/grstatug/62464/HTML/default/p1fiomuidt8j36n1g8tez0dhqv7c...

In either case, the list of available "named" symbols is in the documentation.

cynthia
Ken_oy
Fluorite | Level 6
Thanks a lot!

This one works!!

Ken

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 5072 views
  • 0 likes
  • 4 in conversation