The GTILE Procedure |
Chart Variables |
The GTILE procedure produces charts based on the values of the chart's size variable, and the values of a TILEBY level variable. The chart's sizevariable must be numeric. All the values are treated as discrete. The sum of the chart's size variable variable determines the size of each tile. The chart's size variable is also used to color each tile, unless a color variable is specified with the COLORVAL= option.
At least one TILEBY= variable is required. The values of this variable or variable list determine the tile categories, as well as the chart levels (or subsets).
The levels are visually represented in the chart by line colors and line style. The top level is indicated by a thick line and the darkest color. The next level is represented by a thinner line and the darkest color. The third level and any subsequent levels are represented by the thickest line and the darkest color. Each level is also represented in the navigation status bar in the top-left corner of the chart.
Note: For Java, an indicator to the left of the legend identifies the name of the chart's size variable.
Missing Values, Negative Values, and Zero Values |
When the GTILE procedure finds missing values, negative values, or zero values, it does the following:
The chart's size variable requires non-missing, positive values to create a tile for that observation. If the value of the size variable is missing, a negative value, or a zero value, the observation is not included in the chart.
The TILEBY= variable displays tiles with missing values, negative values, and zero values. Each tile is included in the chart, with its value displayed on the tile and in the chart's data tip.
The COLORVAR= variable displays missing values in a color that can be distinguished from the colors in the color ramp.
Note: For Java, an indicator to the right of the legend identifies the color assigned to missing values.
Assigning Colors |
The COLORRAMP= option enables you to customize the chart's colors. You can specify colors for the tiles using any of the color-naming schemes supported by SAS/GRAPH.
Color-Naming Scheme | Example |
---|---|
RGB |
COLORS=(cx98FB98 cxDDA0DD cxFFDAB9 cxDB7093 cxB0E0E6) |
CMYK |
COLORS=("FF00FF00" "00FFFF00" "FFFFFF00") |
HLS |
COLORS=(H14055FF H0F060FF H0B485FF H07880FF) |
HSV |
COLORS=(V0F055FF v010FFFF v03BFFFF v12C55E8) |
Gray Scale |
COLORS=(GRAY4F GRAY6D GRAY8A GRAYC3) |
SAS Registry Colors |
COLORS=(palegreen plum peachpuff palevioletred powderblue) |
CNS Color Names |
COLORS=("very light purplish blue" "light vivid green" "medium strong yellow" "dark grayish green") |
For information about color naming schemes, see SAS/GRAPH Colors and Images.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.