GTILE Procedure

Example 1: Simple GTILE with the COLORVAR= Option

Features:

TILE statement options TILEBY= and COLORVAR=

Data set: SASHELP.SHOES
Sample library member: GTLSIMPL
In this example, PROC GTILE generates the following chart for the SASHELP.SHOES data set. The size of each tile represents the number of stores. The COLORVAR=SALES option specifies that the color of each tile represents the sales revenue for that tile. The visualization of the data with the GTILE procedure makes it easy to see the data extremes for sales revenue relative to the number of stores.
GTILE Chart of SASHELP.SHOES
Tile Chart of SASHELP.SHOES
The following chart shows the result of drilling down on the region labeled “Canada”. The region was selected to further explore the data. This region displayed the largest area of red, indicating a greater amount of shoe sales.
Subset of SASHELP.SHOES Where Region=“Canada”
Tile Chart of SASHELP.SHOES Where REGION=“CANADA”

Program

goptions reset=all device=java noborder;
proc gtile data=sashelp.shoes;
  tile stores tileby=(region subsidiary)
  / colorvar=sales ;
run;

quit;

Program Description

Here is a detailed description of this program.
Set the graphics options.
goptions reset=all device=java noborder;
Generate the tile chart using SALES as the color variable.The chart variable STORES specifies the size of the tiles. The TILE layout arranges the tiles. The TILEBY=(levels-list) variable list defines the tile segments and the chart levels. The COLORVAR=SALES option specifies the variable to use to color the tiles.
proc gtile data=sashelp.shoes;
  tile stores tileby=(region subsidiary)
  / colorvar=sales ;
run;

quit;