29.10.3 Grouped Histogram

Grouped Histogram.png

Data Requirements

You need to have at least one Y column as input data.

Optionally, you can have an additional associated Y error column for each Y column.

Creating the Graph

Select Plot > Categorical: Grouped Histogram... menu items to open the plot_ghist dialog:

In the dialog that opens, select the input data range. Add at least one group column and determine where to put the calculated data. You can then generate a grouped histogram plot.

You can refer to the section below for the detailed dialog controls:

The plot_ghist Dialog Box

Plot ghist dialog box.png

Data Column(s) This branch is used to specify the input data.
Group Choose grouping columns to divide the input data into multiple plots.
Graph Arrangement
  • Multiple Data: Choose how to arrange the multiple input data.
    Overlay on Same Graph: Plot the seleted input data as overlapping plots on the same graph layer.
    Seperate Layers on Same Graph:Plot the seleted input data into seperate layers on the same graph layer.
    Seperate Graphs:Plot the seleted input data on the seperate graph windows.
  • Stack Plots in Same Layer: Check this box will stack all plots divided by grouping columns in same layer.
  • Split Panels by: Once this check box has been checked, you can select another grouping column to enable horizontal panels which show a grouped column plot for each grouping value seperately. Wrap Panels 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 other grouping column(s) to split the input data and created grouped columns 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.
Share Y When multiple columns ae selected as Input, and Multiple Data is set to Seperate Layers on Same Graph, you can check this box to make the multiple layers on same graph share the Y axis scale.
Share X and Bins Check this box to share X scale and binning settings between different layers and different graphs.
Distribution Curve Specify whether to add distribution curves on the histograms.
  • Distribution: Choose a distribution function to create the distribution curves overlayed on the histograms.
  • Estimate from Data: Checking this box will allow Origin to estimate the parameter values for the curves. Uncheck it to set the custom parameter values in the following boxes.
  • Parameters: Unchecking the Estimate from Data box activates the Parameters boxes, where you can enter custom values ​​to draw the curves.

You can check more details about distribution curves in the Distribution tab of Plot Details dialog.

Hide Bins Once the distribution curve has been added, you can check this box to hide the histogram bars.
Data Height Specify a data as bar height. You can refer to the Data Height control in Data tab of Plot Details dialog.
Graph Template Specify a user template if needed. By default, the Auto check box is checked and the built-in template Hist is used.
Output Plot Data Specify where to output the calculated data.
Output Graphs Specify which sheet the result graphs is output to.

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

Note: In order not to sort the grouping range with default alphabetical order, set it(them) as categorical and modify the orders in the Categories tab.

Template

Hist.otpu (installed to the EXE folder of Origin)

Notes

You are allowed to select multiple columns for Group, Split Panels by and Split Page by box.