6.10.4 Grouped Box Plot

Contents


Video Image.png Video Text Image.png Website blog icon circle.png Blog Image 33x33px.png

Summary

In Origin, a grouped box chart can be created from either indexed data or raw data. The indexed data is arranged as one data column and one or more group columns, while the raw data is arranged as multiple data columns grouped according to the column label row(s).

Once a grouped box plot has been created there are many options to customize the box plots and the axes. The customization options are the same for grouped box plots created from raw data as well as those created using indexed data.

Tutorial Grouped Box Plot 01.png

Minimum Origin Version Required: 2015 SR0

What You Will Learn

This tutorial will show you how to:

Steps

Create Grouped Box Plot from Indexed Data

  1. Select Help: Learning Center menu or press F11 key to open Learning Center. Select Graph Sample tab and then select Quality Control from the "Category" drop-down list. Double-click on the graph sample below to open the sample "Quality Control - Grouped Box Chart".
    Tutorial Grouped Box Plot 00.png
    Note: This tutorial is associated with the folder Grouped Box Plot and Axis Tick Table of the "Tutorial Data" project:<Origin EXE Folder>\Samples\Tutorial Data.opj.
  2. In the workbook Book10, the data in the CC.MI-Index worksheet is indexed data. Column E is the data column and columns C and D can be used as grouping columns. Highlight column E and select Plot > Categorical : Grouped Box Charts - Indexed Data to open the plot_gboxindexed dialog.
  3. In this dialog, click the triangle button at the top of Group Plots by box to select columns C and D.
    Tutorial Grouped Box Plot 02.png
  4. Check the Split Pages by check box. Then click the triangle button at the top of Split Pages by box to select columns B.
  5. Select Box_Width by Sample Size in the Graph Theme drop-down list.
  6. Click OK to create a grouped box plot. Two Grouped Box plots are embedded in a new output worksheet as below. And another new output sheet will be added into the workbook too.
    Tutorial Grouped Box Plot 03.png

For another short tutorial on creating grouped box plots from indexed data, see Example 2.

Customization by Plot Details Dialog

  1. Double-click on the white space of the first graph to open the graph window.
  2. Select Format: Plot to open the Plot Details dialog. To customize Symbol style, select the Outlies tab and set the following:
    Tutorial Grouped Box Plot 05.png
  3. On the Spacing tab, change Gap Between Subgroups (in %) to 35.
    Tutorial Grouped Box Plot 06-1.png
  4. On the Lines tab, change Caps Length to 0.
    Tutorial Grouped Box Plot 06.png
  5. On the Percentile tab, change Mean symbol style and change Edge Color to White.
    Tutorial Grouped Box Plot 07.png
  6. On the Group tab, click the ... button on the right end of the Details column for Border Color row. The Build Color dialog is open. Then move the color order as shown below:
    Tutorial Grouped Box Plot 08.png
  7. Click OK to apply all the previous settings and close the Plot Details dialog. Finally, the graph should resemble the image below:
    Tutorial Grouped Box Plot 10.png

Customization by Axis Dialog

Continue with the graph from the previous section.

  1. Click on the whole bottom X Axis uncheck the Show Table Row Title button in the Mini Toolbar to hide the table row title of bottom axis.
    Tutorial Grouped Box Plot 14.png
  2. Click SEG 1 on the bottom table row of the X axis, in the popup Mini Toolbar, click Move to Opposite button to move it to the top axis.
    Tutorial Grouped Box Plot 15.png
  3. Click the SEG 1 and update the Fill Color and font size on the Mini Toolbar.
    Tutorial Grouped Box Plot 16.png
  4. Click on the whole row of CC, MI... and select Outline with Tick in Center from the Table Style button on Mini Toolbar.
    Tutorial Grouped Box Plot 17.png
  5. Click on the Y axis and select Major from the Show Gridlines button on Mini Toolbar.
    Tutorial Grouped Box Plot 18.png
  6. Double click on the Y axis to open the Axis dialog. Then go to Tick Labels tab. Under Display subtab, set Display Units to 10^3 and set Show Display Units to Begin from Axis End.
    Tutorial Grouped Box Plot 19.png
  7. Go to Grids tab. Click Vertical and check the Show option for Major Grid Lines, and customize the color.
    Tutorial Grouped Box Plot 20.png
  8. Click OK to apply the settings and close the Axis dialog. The final graph should appear as shown below:
    Tutorial Grouped Box Plot 01.png
  • You can click to select table labels and nudge them using the arrow keys on your keyboard.
  • You can click use the Mini Toolbar button of the embedded graph to apply the styles to other graphs which are embedded in the same Worksheet.
Tutorial Grouped Box Plot 21.png