Attachment 1
Attachment 1
If you’re doing statistical analysis, you may want to create a standard box plot to show
distribution of a set of data. In a box plot, numerical data is divided into quartiles, and a
box is drawn between the first and third quartiles, with an additional line drawn along the
second quartile to mark the median. In some box plots, the minimums and maximums
outside the first and third quartiles are depicted with lines, which are often called
whiskers.
While Excel 2013 doesn't have a chart template for box plot, you can create box plots by
doing the following steps:
In our example, the source data set contains three columns. Each column has 30 entries
from the following ranges:
In this article
Step 4: Convert the stacked column chart to the box plot style
To do this, create a second table, and populate it with the following formulas:
Value Formula
As a result, you should get a table containing the correct values. The following quartiles
are calculated from the example data set:
Top of Page
To begin, create a third table, and copy the minimum values from the last table there
directly.
Calculate the quartile differences with the Excel subtraction formula (cell1 – cell2), and
populate the third table with the differentials.
For the example data set, the third table looks like the following:
Top of Page
Select all the data from the third table, and click Insert > Insert Column Chart > Stacked
Column.
At first, the chart doesn't yet resemble a box plot, as Excel draws stacked columns by
default from horizontal and not vertical data sets.
To reverse the chart axes, right-click on the chart, and click Select Data.
Tips:
Click OK.
The graph should now look like the one below. In this example, the chart title has also been
edited, and the legend is hidden at this point.
Top of Page
To convert the stacked column graph to a box plot, start by hiding the bottom data series:
Note: When you click on a single column, all instances of the same series are selected.
Click Format > Current Selection > Format Selection. The Format panel opens on the
right.
On the Fill tab, in the Formal panel, select No Fill.
The bottom data series are hidden from sight in the chart.
The next step is to replace the topmost and second-from-bottom (the deep blue and
orange areas in the image) data series with lines, or whiskers.
From the ribbon, click Design > Add Chart Element > Error Bars > Standard Deviation.
Click one of the drawn error bars.
Open the Error Bar Options tab, in the Format panel, and set the following:
The stacked column chart should now start to resemble a box plot.
Color the middle areas
Box plots are usually drawn in one fill color, with a slight outline border. The following
steps describe how to finish the layout.
On the Fill & Line tab in Format panel click Solid fill.
Set the same values for other areas of your box plot.