Data visualization with SAS programming

Any symbol list for SAS graph?

Reply
Frequent Contributor
Posts: 128

Any symbol list for SAS graph?

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!
Super Contributor
Posts: 281

Re: Any symbol list for SAS graph?

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
SAS Employee
Posts: 980

Re: Any symbol list for SAS graph?

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;
SAS Super FREQ
Posts: 8,819

Re: Any symbol list for SAS graph?

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
Frequent Contributor
Posts: 128

Re: Any symbol list for SAS graph?

Thanks a lot!

This one works!!

Ken
Ask a Question
Discussion stats
  • 4 replies
  • 816 views
  • 0 likes
  • 4 in conversation