The SG attribute map
feature provides a mechanism for controlling the visual attributes
that are applied to specific data values in your graphs.
For example, if you
create a graph that plots items sold in different countries, you can
specify the display attributes for the sales data of each country
by name. Attribute maps apply only to group data. Attribute maps enable
you to ensure that particular visual attributes are applied based
on the value of the data instead of the position of the data in the
data set.
Two main tasks are
required for attribute mapping:
-
Create an SG attribute
map data set, which associates data values with particular visual
attributes. Each observation defines the attributes for a group value.
For more information, see
SG Attribute Map Data Sets.
-
Modify the SG procedure
and its plot statements to use the data in the SG attribute map. You
can use attribute maps in the SGPLOT, SGPANEL, and SGSCATTER procedures
(not all plot statements support attribute maps). For more information,
see
Modify the Procedure to Use the SG Attribute Map Data Set.