Using an Attribute Map Data Set

The attribute map feature enables you to control 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 steps are required for attribute mapping:
  1. Create an SG attribute map data set, which associates data values with particular visual attributes. Each observation defines the attributes for a group value.
  2. Modify the 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).