Plot: 2D: Cluster Plot
Create a multiple-panel graph by specified group information
Minimum Origin Version Required: 2019
1. plot_bygroup -r 1 iy:=[Book1]Sheet1!((A,B),(A,C)) type:=scatter hgroup:=[Book1]Sheet1!D xlink:=1;
2. plot_bygroup iy:=[Book1]Sheet1!(E,F) type:=column hgroup:=[Book1]Sheet1!A vgroup:=[Book1]Sheet1!B color:=[Book1]Sheet1!C rowcol:=2;
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Input | iy |
Input XYRange |
|
Specifies the data you want to plot. Multiple XY ranges are supported. |
Plot Type | type |
Input int |
|
Specifies the graph type you want to plot. Option list:
|
Graph Template | template |
Input string |
Specifies the graph template to create the group plot. Default template used is groupedplot.otpu (installed to Origin program folder). | |
Variable for Separate Layers > Horizontal | hgroup |
Input Range |
|
Specifies the group column(s) that is used to categorize the input data. Each group variable will be displayed in a separate panel and penels are arranged horizontally. |
Variable for Separate Layers > Vertical | vgroup |
Input Range |
|
Specifies the group column(s) that is used to categorize the input data. Each group variable will be displayed in a separate panel and panels are arranged vertically. |
hexclude |
Input string |
Not intended for use. | ||
vexclude |
Input string |
Not intended for use. | ||
Variable to Color Data Points | color |
Input Range |
|
Specifies the column that is used to color-map the plot(s). |
Variable for Symbol Shape | shape |
Input Range |
|
Specifies the column that is used to index the symbol shape. Scatter and Line+Symbol plots only. |
Variable for Symbol Size | size |
Input Range |
|
Specifies the column that is used to control the symbol size. Scatter and Line+Symbol plots only. |
Arrange Layers | arrange |
Input int |
|
Specifies how to arrange the layers in the generated group graph. The multiple layers will be arranged on a row X col grid. Available when either hgroup or vgroup is not assign. Option list:
|
Number of Columns/Rows | rowcol |
Input int |
|
Specifies the number of columns/rows when arrange = rowcol |
Link Layers | link |
Input int |
|
Specifies whether to link the rest of layers to Layer1 |
Horizontal Gap | hgap |
Input int |
|
Specifies the horizontal gap between adjacent layers. |
Vertical Gap | vgap |
Input int |
|
Specifies the vertical gap between adjacent layers. |
Left Margin | leftmg |
Input int |
|
Specifies the left margin of the generated graph page. |
Right Margin | rightmg |
Input int |
|
Specifies the right margin of the generated graph page. |
Top Margin | topmg |
Input int |
|
Specifies the top margin of the generated graph page. |
Bottom Margin | bottommg |
Input int |
|
Specifies the bottom margin of the generated graph page. |
Uniform X Scale | xlink |
Input int |
Check this to link X axis of child layer to that of parent layer as Straight (1 to 1) . | |
Uniform Y Scale | ylink |
Input int |
Check this to link Y axis of child layer to that of parent layer as Straight (1 to 1). | |
X Axes Gap(%) | xoffset |
Input double |
This is available only when arrange = overlap and xlink = 0. When all layers are overlapped, this determines the offset gap of X axes from different layers, in unit of percentage of the page dimension. | |
Y Axes Gap(%) | yoffset |
Input double |
This is available only when arrange = overlap and ylink = 0. When all layers are overlapped, this determines the offset gap of Y axes from different layers, in unit of percentage of the page dimension. | |
Show Group Info in X Title | xinfo |
Input int |
This is available only when arrange = overlap and xlink = 0. Specifies whether to show group information in X axis title. | |
Show Group Info in Y Title | yinfo |
Input int |
This is available only when arrange = overlap and ylink = 0. Specifies whether to show group information in Y axis title. | |
Hide Axes for Inner Layers | inner |
Input int |
This is available only when when arrange = rowcol (but disable when rowcol is not Auto). Specifies whether to hide axis ticks and labels for inner layers. If checked, only the left most layers show the ticks and labels of Y axes and bottom layers show the X axes. If layer gap is set to 0, check this checkbox to eliminate the gap between adjacent panels. | |
Show Group Info in | info |
Input int |
This is available when arrange is NOT set to overlap. Specifies how to show the group information.
Option list:
| |
Show Axis Frame | frame |
Input int |
Specifies whether to show axis frame. | |
Output Data | rd |
Output ReportData |
Specifies the worksheet where the unstacked data is output to. This intermediate worksheet is used to create the group graph. |
This X-Function creates a trellis-like graph. Input data is categorized into multiple layers by the specified group column(s). Please refer to cluster plot for more details.