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 File > Options > General. Under Macro location browse to the location where you save macro files.

Important

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

OPTION 2
Use to plot the mean and (mean +- stdev) instead of the median.
ONEPAGE
Use when creating multiple dotplots to place all graphs together in the same graph.

Running the Macro

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

%DOTP C1.

Click Run.

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 View > Command Line/History and type:

%DOTP C1.
BY C2.

Click Run.