Procedure features: |
|
Other features: |
|
Data set: |
PIESALES
|
This example
-
produces horizontal bar
charts only for observations with a common
value
-
charts the values of a variable for the categories of another
variable
-
creates side-by-side bar charts for the categories of a third
variable.
|
options nodate pageno=1 linesize=80 pagesize=60; |
|
proc chart data=piesales(where=(year=1995)); |
|
hbar bakery / group=flavor |
|
sumvar=pies_sold; |
|
title '1995 Pie Sales for Each Bakery According to Flavor';
run; |
2007 Pie Sales for Each Bakery According to Flavor 1
Flavor Bakery Pies_Sold
Sum
|
apple Clyde |****************************************** 313.0000
Oak |******************************************* 319.0000
Samford |******************************* 234.0000
|
blueberr Clyde |************************ 177.0000
Oak |*********************** 174.0000
Samford |************** 103.0000
|
cherry Clyde |********************************* 250.0000
Oak |********************************* 246.0000
Samford |*********************** 173.0000
|
rhubarb Clyde |******** 60.0000
Oak |******* 51.0000
Samford |*** 26.0000
|
----+---+---+---+---+---+---+---+---+---+---
30 60 90 120 150 180 210 240 270 300
Pies_Sold Sum
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.