This macro generates a mosaic plot for 3 categorical variables. The size of each rectangle is proportional to the percentage of observations from that combination of variable levels.

This macro generates a mosaic plot for 3 categorical variables. The size of each rectangle is proportional to the percentage of observations from that combination of variable levels.

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

You need three columns of categorical values.

Note

The total number of category level combinations cannot be greater than 50.

Running the Macro

Suppose three categorical variables are in columns C1, C2, and C3. To run the macro, choose View > Command Line/History and type:

%MOSAIC C1 C2 C3

Click Run.