Procedure features: |
PROC GTILE statement |
FLOW statement |
COLORVAR= |
COLORRAMP= |
DETAILLEVEL= |
|
Data Set: |
SASHELP.ORSALES Subset
|
Sample Library Member: |
GTLCOLOR
|
PROC GTILE generates this chart displaying a subset of the SASHELP.ORSALES
data set. The FLOW statement defines the layout of the data. The size of each
tile indicates the number of items sold. The color of each tile indicates
the profit. The visualization of the data with the GTILE procedure makes it
easy to see the data extremes for profit relative to the number of items sold.
Tile Chart of a Subset of SASHELP.ORSALES (gtlcolor)
![[tile chart of sashelp.orsales]](images/gtilesampsrc3.gif)
Clicking on the "Skates"
product_group subsets the "Skates" observations
by year. The updated display provides information on the "Skates" profits
by year.
Subset of SASHELP.ORSALES where Product_Group="Skates" (gtlcolor)
![[click on assorted sports articles]](images/gtilesampsrc4.gif)
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
ods listing close; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
ods html file="sport_sales.html"; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
goptions reset=all device=java; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
data sports_only;
set sashelp.orsales;
if product_line="Sports";
format profit dollar12.;
format quantity comma12.;
run; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
proc gtile data=sports_only;
flow quantity tileby=(product_group year) /
colorvar=profit
/* display less details */
detaillevel=1
/* reverse the colors so that blue is highest */
colorramp=(CXDD6060 CXFFFFFF CX6497EB);
run;
quit; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
ods html close; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
ods listing; |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.