Click here to see the SAS code.
Click here to see the example.

---------------------------------------------------------------

This example shows the power of v9.2 sas :-)

Prior to v9.2, it was not possible to show all of the special 'named' 
sas colors in 1 graphical output, because sas could not support more
than 256 colors in a single graph -- in v9.2, we are no longer limited
to 256 colors, and can now show all the special named sas colors on
one page! :)

This output should be useful to all sas/graph users, even if they 
don't have v9.2 sas yet -- they can view this output, and hover thier
mouse over the color-swatches, and find out the sas color nicknames
for the color they want (or, alternatively they can find out the 
RGB hex codes, etc).  This should be tremendously helpful in 
picking out colors :)

Note that this example was created by programmatically 'drawing'
rectangular polygons (using sas/graph annotate functions 'poly'
and 'polycont'), and displaying the annotate dataset using 'proc ganno'.

One 'trick' I used to enhance tech support's original example was
that I create a gray/empty polygon for each rectangle, and annotate
it on top of the colored ones, so they all have a gray border.

Note that I use 'nogtitle' so that the title is outside the graph 
area (just scripted in the ods) - that way the title doesn't overprint
the color-swatches.

---

This example was adapted from the following SAS Tech Support example:

  http://ftp.sas.com/techsup/download/sample/graph/other-colors.html

Hmm ... that example is gone now :\
So, perhaps this tech support technote is the new definitive list(?)
  http://support.sas.com/techsup/technote/ts688/ts688.html

---

Back to Samples Index