31.10.4 Grouped Box Charts-Indexed Data

Contents

Data Requirements

Select at least one column as input data, and prepare at least one categorical column to create grouped box charts.

Creating the Graph

Select required data.

From the menu, select Plot > Categorical: Grouped Box Charts - Indexed Data.

or

Click the Grouped Box Charts - Indexed Data button on the 2D Graphs toolbar.

In the dialog that opens, select the group range, split panels/pages and choose graph theme to create the grouped box chart.

Please see more details on creating and customizing box charts in .

The plot_gboxindexed Dialog Box

Data Column(s) This branch is used to .
Group Plots by This part includes a display box and a toolbar with five buttons :
  • Display Box
    The selected group range(s) will display in this box. To plot, you must select something other than <none>. The sequence of data ranges determines the grouping order, with the first range supplying the primary groups, the second range supplying the secondary groups within the primary groups, and so forth.
  • Add button
    Click this button then choose a column from menu; or click Select Columns to open the and add column(s) to the Display Box as grouping range(s). You can add up to 5 grouping ranges.
  • Remove button
    Remove the selected data range(s) from the Display Box. This button is available when you select one or more data ranges in the Group Column(s) box.
  • Move Up button
    Move the selected data range(s) up in the Display Box. This changes the grouping sequence.
  • Move Down button
    Move the selected data range(s) down in the Display Box. This changes the grouping sequence.
  • Select All button
    Select all data range(s) down in the Group Column(s).
Multiple Data When there are multiple input columns selected in Data Colulmn(s), you can use this option to decide how to arrange these data:
  • Overlay on Same Graph: Plot all data on same graph page as overlayed plots.
  • Separate Layers on Same Graph:Plot these data seperately into different layers on same graph page
  • Separate Graphs:Plot these data seperately into different graph pages
Split Data by When Multiple Data is not set to Separate Graphs, this control will show. You can choose a column label row to split multiple data into different data groups.
Multiple Data Groups When any column label row has been selected for Split Data by, you can choose how to arrange the data groups: Separate Layers or Separate Graphs.
Data Scaling Level When there is multiple data with groups, you can use this option to put data variable info in inner of groups or outer of groups.

Share Y This option only shows when Multiple Data has been set to Separate Layers on Same Graph. It is used to make the Y scale shared between different layers.
Horizontal Panels by Once this check box has been checked, you can select another grouping column to enable which show a grouped box chart for each grouping value seperately.

If Vertical Panels by is not checked, will be enabled, ticks and labels will be shown on alternate sides by default.

When there are multiple columns selected, only one panel info label row will be shown on top, panel banner string will include all factors and separated by comma.

Vertical Panels by Once this check box has been checked, you can select another grouping column to enable which show a grouped box chart for each grouping value seperately.

If Horizontal Panels by is not checked, will be enabled, ticks and labels will be shown on alternate sides by default.

When there are multiple columns selected, only one panel info label row will be shown on top, panel banner string will include all factors and separated by comma.

Split Pages by Once this check box has been checked, you can select another grouping column to split the input data and created gouped chart boxes in different graph pages. Each page only plots the columns within the same page related group. Page related group info will be shown in layer title, separated by comma if there are multiple factors. Report graph sheet will list all pages.
Graph Template Select a template to apply the formats and settings on the graph. By default, the built-in template gbox.optu is selected by Auto box checked.
Graph Theme Choose from a list of built-in graph theme for the grouped box plot
Data Points Color by When Graph Theme includes data point display (e.g. Box_Column_Scatter), add a Data Points Color by control for coloring of individual points using worksheet column values. Optional.
Color Increment Specify how to color the grouped boxes with the color increment list, within subgroup or between subgroup.
Additional Info in Tick Labels "; each notation will be shown in different table rows. All these info will be shown after group info table rows.
Output To Specify where to output the graph(s), as separate graph window(s) or embed within the report sheet.
Output Plot Data Specify where to .
Output Graphs Specify which sheet to output the result graphs.

In addition, you can preview the final graph in this dialog.

Note: The option in this dialog is set to Auto by default.

Note: When the selected grouping column(s) will result in the creation of more than 200 groups, the dialog displays an attention message warning that the calculation might be slow and prompting the user to confirm that the calculation should proceed (graph previews are also disabled). This threshold value of 200 groups is modified by changing the value of .

Example

  1. Create a new workbook.
  2. Click the button to import the automobile_categorical.dat file under <Origin EXE Folder>\Samples\Statistics path.
  3. Highlight column C~G and select Plot: Categorical: Grouped Box Charts - Indexed Data from top menu to open the plot_gboxindexed dialog.
  4. In the Group Plots by section, click the triangle button at the top right corner and select Col(I).
  5. Select Seperate Layers On Same Graph from the Multiple Data drop-down list.
  6. Check the check box before Horizontal Panels by option, in the following box, click the triangle button at the top right corner and select Col(H).
  7. Check the check box before Split Pages by option, in the following box, click the triangle button at the top right corner and select Col(A).
  8. Select <Original> for Graph Theme. Please note, if you have already saved a graph template and wants to use them on your graph, you can uncheck Auto box and click ... button to browse and select the template in the Graph Template option.
  9. Select Between Subgroup radio box for Color Increment option.
  10. Make sure the Output Plot Data and Output Graph are set to [<input>]<new> and [<same>]<new>.
  11. Click OK to create the plot. You will get two new sheets: One for plot data and another one for result graphs by years. You can double-click on the graph in sheet "GBoxGraph1" to open the graph window.

Template

gBox.otp (installed to the EXE folder of Origin)

Notes