This example produces a vertical bar chart that shows a frequency count
for the values of the chart variable.
|
options nodate pageno=1 linesize=80 pagesize=60; |
|
data shirts;
input Size $ @@;
datalines;
medium large
large large
large medium
medium small
small medium
medium large
small medium
large large
large small
medium medium
medium medium
medium large
small small
; |
|
proc chart data=shirts;
vbar size; |
|
title 'Number of Each Shirt Size Sold';
run; |
|
Number of Each Shirt Size Sold 1
Frequency
11 + *****
| *****
| *****
| *****
10 + *****
| *****
| *****
| *****
9 + ***** *****
| ***** *****
| ***** *****
| ***** *****
8 + ***** *****
| ***** *****
| ***** *****
| ***** *****
7 + ***** *****
| ***** *****
| ***** *****
| ***** *****
6 + ***** ***** *****
| ***** ***** *****
| ***** ***** *****
| ***** ***** *****
5 + ***** ***** *****
| ***** ***** *****
| ***** ***** *****
| ***** ***** *****
4 + ***** ***** *****
| ***** ***** *****
| ***** ***** *****
| ***** ***** *****
3 + ***** ***** *****
| ***** ***** *****
| ***** ***** *****
| ***** ***** *****
2 + ***** ***** *****
| ***** ***** *****
| ***** ***** *****
| ***** ***** *****
1 + ***** ***** *****
| ***** ***** *****
| ***** ***** *****
| ***** ***** *****
--------------------------------------------
large medium small
Size
| |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.