Creating a Horizontal Bar Chart with Statistics - SAS Programming

You can also display the information in a horizontal bar chart by replacing the statement VBAR with HBAR in the program. Here is the code:

Example

PROC CHART DATA=SALES;
TITLE 'Horizontal Bar Chart';
HBAR REGION;
RUN;

Here is the output:

Output from Example - Creating a Horizontal Bar Chart with Statistics

Output from Example - Creating a Horizontal Bar Chart with Statistics

By default, HBAR charts include the same frequency information as produced by PROC FREQ.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

SAS Programming Topics