Having learned how to create, lay out, and annotate time-series charts, we will now look at creating a variety that is useful in presenting statistical information.
Common plots used in statistical analyses
Showing relative differences with bar plots
Bar plots are useful in visualizing the relative differences in values of non-time-series data. Bar plots can be created by using the kind='bar' parameter of the .plot():
A multiple-series bar plot will be created to compare multiple values at each x-axis label:
The stacked=True parameter can be use to stack the bars instead of being side by side:
The orientation can be turned to horizontal using kind='barh':