pane | R Documentation |
Creates a new pane object representing a single viewing area in the NG-CHM panel layout system.
pane(id = NA, width = 100, height = 100, collapsed = FALSE, expanded = FALSE)
id |
Character string identifying the pane. Must be specified, no default. |
width |
Numeric value for pane width, expressed as a percentage (0-100). Default is 100. |
height |
Numeric value for pane height, expressed as a percentage (0-100). Default is 100. |
collapsed |
Logical indicating if the pane is collapsed. Default is FALSE. |
expanded |
Logical indicating if the pane is expanded. Default is FALSE. |
A new pane
object with the specified properties
pane for class details
panel_configuration for using panes in configurations
# Create a basic pane
p1 <- pane(id = "pane1")
# Create a half-width pane
p2 <- pane(id = "pane2", width = 50)
# Create an expanded pane
p3 <- pane(id = "pane3", expanded = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.