Display median, Q1, and Q3 on a dotplot

This macro creates a dotplot for each input variable and plots the median, Q1, and Q3. There is an option to plot the mean, and the mean +/- 1 standard deviation instead.

Download the Macro

Be sure that Minitab knows where to find your downloaded macro. Choose Tools > Options > General. Under Macro location browse to the location where you save macro files.


If you use an older web browser, when you click the Download button, the file may open in Quicktime, which shares the .mac file extension with Minitab macros. To save the macro, right-click the Download button and choose Save target as.

Required Inputs

  • A column of numeric data. Multiple groups can be graphed by specifying multiple columns of numeric data (unstacked) or a single column of data values and a corresponding column of group indicators (stacked).

Optional Inputs

Use to plot the mean and (mean +- stdev) instead of the median.
Use when creating multiple dotplots to place all graphs in a single window.

Running the Macro

Suppose you have data in C1. To run the macro, go to Edit > Command Line Editor and type:


Click Submit Commands.

Suppose you have data in C1 and a grouping variable in C2. You want to create a dotplot for each group. To run the macro, go to Edit > Command Line Editor and type:

BY C2.

Click Submit Commands.

By using this site you agree to the use of cookies for analytics and personalized content.  Read our policy