Skip to main content

Trellis plot

Trellis plot is useful for finding the structure and patterns in complex data. A trellis plot is a layout of smaller charts in a grid with consistent scales. Each smaller chart represents rows that belong to a corresponding category. The grid layout looks similar to a garden trellis, hence the name trellis plot.

There are two ways to add a trellis plot, visualized below:

  • click on the Trellis plot icon in the toolbox, and then customize the inner chart by clicking on the "gear" icon on the left
  • create a viewer that you want to eventually become an inner chart, customize it the way you like, and then click on Viewer | Use in Trellis

Developers: To add the viewer from the console, use: grok.shell.tv.addViewer('Trellis plot');

Trellis Plot

viewers-as-trellis

Typically, you want the data split by one or two columns. Use combo boxes on top of the control for that. Note that you can split data by one column per dimension.

To change the inner viewer type, click on the viewer icon in the left top corner. To edit inner viewer's settings, use the "gear" icon next to it.

Trellis Plot automatically picks up element renderers for rendering categories. For instance, this is how it looks for chemical structures after performing R-Group Analysis:

R-Group Analysis

Videos

Trellis Plot

Properties

PropertyTypeDescription
General
X Column Nameslist
Y Column Nameslist
Allow Viewer Full Screenbooleanif false, full screen icon will not be shown on inner viewer hover
Y Labels Orientationtextorientation
X Labels Orientationtextorientation
Category Label Fontstring
Inner Viewer Looklookandfeel
Show Gridlinesstring
Show X Selectorsboolean
Show Y Selectorsboolean
Show X Labelsboolean
Show Y Labelsboolean
Show Control Panelboolean
Sync Mouse Over Rowboolean
On ClickstringAction to be performed when you click on a trellis cell
Pack Categoriesboolean
Use Tiled Viewboolean
Tiles Per Rownumber
Back Colornumber
Legend Visibilityvisibilitymode
Legend Positionflexautoposition
Row SourcestringDetermines the rows shown on the plot.
Allow Dynamic Menusboolean
Show Context MenubooleanProperties common for all viewers todo: use code generation
Titlestring
DescriptionstringViewer description that gets shown at the Descriptor Position. Markup is supported.
HelpstringHelp to be shown when user clicks on the ''?'' icon on top. Could either be in markdown, or a URL (starting with ''/'' or ''http'').
Description Positionflexposition
Description Visibility Modevisibilitymode
Axes
Show X AxesvisibilitymodeShows horizontal axis for each inner viewer row. Depending on selected inner viewer, axis may be hidden automatically.
Show Y AxesvisibilitymodeShows vertical axis for each inner viewer column. Depending on selected inner viewer, axis may be hidden automatically.
Global ScalebooleanIf checked, all inner viewers use the same axis scales.
Show Range SlidersbooleanShows range sliders for inner viewer axis. Available only if corresponding axes (X or Y) are shown.
Style
Auto Layoutboolean
Controls FontstringViewer controls elements font.
Data
FilterstringFormula that filters out rows to show. Examples: ${AGE} > 20 or ${WEIGHT / 2)} > 100, ${SEVERITY} == ''Medium'', ${RACE}.endsWith(''sian'')
Tablestring
Description
Show Titleboolean

See also: