panel_configuration: Create a panel configuration

View source: R/panelClasses.R

panel_configurationR Documentation

Create a panel configuration

Description

Creates a new panel configuration object that combines pane layout information with individual pane configurations.

Usage

panel_configuration(panes_list, pane_types)

Arguments

panes_list

A list containing pane objects and sizes information. See panel_configuration-class for format details.

pane_types

A named list mapping pane IDs to their configurations. Each element must be a detailMap, summaryMap, or pluginPane object.

Value

A new panel_configuration object

See Also

  • panel_configuration for class details

  • pane for creating pane objects

  • detailMap for detail map configuration

  • summaryMap for summary map configuration

Examples

# Create a three-pane layout with a detail map, a summary map, and a plugin pane:
pane1 <- pane(id = "pane1")
pane2 <- pane(id = "pane2")
pane3 <- pane(id = "pane3")
panes_list <- list(pane1, list(pane2, pane3, sizes = c(30, 70)), sizes = c(100))

# Create pane configuration for each pane
pane_types <- list(
  pane1 = detailMap(id = "pane1"),
  pane2 = summaryMap(id = "pane2"),
  pane3 = pluginPane(id = "pane3", pluginName = "2D ScatterPlot: UMAP (column)")
)

# Create panel configuration
config <- panel_configuration(panes_list, pane_types)


MD-Anderson-Bioinformatics/NGCHM-R documentation built on June 9, 2025, 8:04 p.m.