
A barplot (or barchart) is one of the most common type of plot. It shows the relationship between a numerical variable and a categorical variable. For example, you can display the height of several individuals using bar chart. Barcharts are often confounded with
histograms, which is highly different. (It has only a numerical variable as input and shows its distribution). A common mistake is to use barplots to represent the average value of each group. If you have several values per group, showing only the average dissimulate a part of the
information. In this case, consider doing a boxplot or a violinplot. At least, you should show the number of observation per group and the confidence interval of each group. Last tip: ordering the bars often makes the chart more informative.
Sponsors
Matplotlib
- #1 Basic Barplot
- #2 Horizontal Barplot
- #3 Uniform RGB color with matplotlib
- #3 Color of bars | matplotlib
- #3 Control borders of barplot
- #4 Add title and axe labels
- #5 Custom width of bars
- #5 Space between bars
- #6 Change bars texture
- #7 Increase bottom margin
- #7 Custom labels
- #8 Add error bars
- #10 Show number of obs one marplot
related
- Lollipop plot
- Stacked barplot
- Doughnut plot
- Stacked area plot