Boxplot
Learn how to build a boxplot and modify its elements using ggplot2.
We'll cover the following...
Overview of the boxplot
A box and whisker plot (commonly known as a boxplot) is used to visualize multiple distributions using summary statistics. A boxplot provides information on the five summary statistics of the given dataset variable, which include:
- The minimum value
- The maximum value
- The median
- The first and third quartiles
In short, a boxplot is popularly used to display data distribution. It helps detect outliers and compare distributions of the data.
Let’s study the structure of the boxplot:
- The box, as seen from the figure, is the core of the boxplot.
- The lower side of the box represents the first quartile (or Q1), i.e., the
Ask