Customizing Frequency Charts

Changing the Number of Ranges

You can change the appearance of the charts in the following ways:
Table 31.2 Chart Appearance
Action
Option
Specify midpoints that define the range of values that each bar, block, or section represents
MIDPOINTS= option
Specify the number of bars on the chart and let PROC CHART compute the midpoints
LEVELS= option
Specify a variable that contains discrete numeric values. PROC CHART produces a bar chart with a bar for each distinct value
DISCRETE option
Note: Most examples in this section use vertical bar charts. However, unless documented otherwise, you can use any of the options in the PIE, BLOCK, or HBAR statements.

Specifying Midpoints for a ...

Get Step-by-Step Programming with Base SAS 9.4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.