| Key Concepts |
Indexing can be used to collapse the number of groups that are represented in a graph. For example, if there are 10 groups in the data, indexes 1 and 2 can be assigned to the first two groups, and index 3 can be assigned to all other groups. The third through tenth data groups are treated as a single group in the graph.
Indexing can control the order in which colors and marker symbols are mapped to group values in a graph. This ordering method is only needed for coordinating the data display of multiple graphs when the default mapping would cause group values to be mismatched between graphs.
For example, consider two studies of three drugs, A, B, and C. If Study 1 uses all three drugs, then the first combination of color and marker symbol is mapped to Drug A. The second combination of color and marker symbol is mapped to Drug B, and the third is mapped to Drug C. If Study 2 omits Drug A, then the first combination of color and marker symbol is mapped to Drug B, and the second is mapped to Drug C. If the two graphs are viewed together, then this default mapping causes the group values to be mismatched. The visual attributes that represent Drug A in the first graph represent Drug B in the second graph, and those that represent Drug B in the first graph represent Drug C in the second group.
The GROUP= option mappings can be made consistent between the two graphs by creating an index column for each study. For these example studies, the GROUP and INDEX columns are the following:
| Study 1 | Drug1 | Index1 |
|---|---|---|
| A | 1 | |
| B | 2 | |
| B | 2 | |
| C | 3 |
| Study 2 | Drug2 | Index2 |
|---|---|---|
| B | 2 | |
| C | 3 | |
| C | 3 |
If the graph for Study 1 specifies INDEX=INDEX1 and the graph for Study 2 specifies INDEX=INDEX2, then the second combination of color and marker symbol is mapped to Drug B in both graphs, and the third combination of color and marker symbol is mapped to Drug C in both graphs.
Copyright © 2007 by SAS Institute Inc., Cary, NC, USA. All rights reserved.