Previous Page | Next Page

The GTILE Procedure

Example 1: Simple GTILE with the COLORVAR= Option


Procedure features:

PROC GTILE statement

TILE statement

TILEBY=( levels-list)

COLORVAR= option

Data Set: SASHELP.SHOES
Sample Library Member: GTLSIMPL

PROC GTILE generates a 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 (gtlsimpl)

[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" (gtlsimpl)

[click on Canada in tile chart]

 Note about code
ods listing close;
 Note about code
ods html file="shoe_sales.html";
 Note about code
goptions reset=all device=java;
 Note about code
proc gtile data=sashelp.shoes;
  tile stores tileby=(region subsidiary)
  / colorvar=sales ;
run;

quit;
 Note about code
ods html close;
 Note about code
ods listing;

Previous Page | Next Page | Top of Page