A vertical bar chart is not a histogram. Remember that the first chart you saw in this chapter was a histogram and its y-axis totaled 100%. This won't necessarily happen in every vertical bar chart. A histogram is more than a vertical representation of data, as we saw when we used one to understand the probability distribution function using density curves. Let's delve into how vertical bar charts can make our data visually appealing. As always, we will start with a simple example:
Proc SGPLOT Data=Class;
VBar Height;
Title ' Basic Form of Vertical Chart';
Run;
The chart that's produced is as follows:
There are only three data points of Height, which have a frequency of 2.
Up until now, we have only explored a few of the data axis options. Let's experiment a bit with our basic vertical chart and try out some charting...