BoxPlot

Picture 1The data shown below are Ruth and McGwire's home-run numbers every season. In order to compare them using side-by-side Boxplot, first of all you need to enter those data into the first column of the work sheet.

Ruth 54 59 35 41 46 25 47 60 54 46 49 46 41 34 22
McGwire 49 32 33 39 22 42 9 9 39 52 58 70

To enter a value in a Data sheet cell, just click on the cell, type a value, and press Enter. The active cell automatically moves down. Once you finished entering all the data in column one, in this case all the home run number of Ruth and McGwire by the order 54 59 35 41 46 25 47 60 54 46 49 46 41 34 22 (homerun numbers of Ruth) 49 32 33 39 22 42 9 9 39 52 58 70(homerun numbers of McGwire), click the first cell of column two, enter the name of player who performed this number. In this case from row 1 to row 15 are home run numbers of Ruth, and row 16 to row 27 are home run numbers of McGwire. After doing all this, you will get a worksheet as picture 1.

You can name the column by click the column name cell and type the name. Names can't be longer than 31 characters, begin or end with a space, including symbol ' or #, or start with the symbol *. You can also name column by using session command "NAME".

Before you type any command in session window, go to Editor>Enable Command Language, then you can type the command after Minitab prompt (MTB>). In this case, type : MTB>name c1 'home run' c2 'player'

Once you get the data set, you just need to choose Graph-->Boxplot from menu and filling in the dialog box. For side-by-side boxplots, select measurements (home run) into Y and a categorical variable (player) into X. As shown in right graph.

You can also type the command below into session window to get the same result.

MTB> boxp 'home run'*'player'

And here is the side-by-side boxplot graph .

Back to index