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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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