...: Unnamed arguments will become child elements of the layout. Named arguments will become HTML attributes on the outermost tag.
cellWidths: Character or numeric vector indicating the widths of the individual cells. Recycling will be used if needed. Character values will be interpreted as CSS lengths (see validateCssUnit()), numeric values as pixels.
cellArgs: Any additional attributes that should be used for each cell of the layout.
Examples
## Only run examples in interactive R sessionsif(interactive()){options(device.ask.default =FALSE)# Server code used for all examplesserver <-function(input, output){ output$plot1 <- renderPlot(plot(cars)) output$plot2 <- renderPlot(plot(pressure)) output$plot3 <- renderPlot(plot(AirPassengers))}# Equal sizingui <- splitLayout( plotOutput("plot1"), plotOutput("plot2"))shinyApp(ui, server)# Custom widthsui <- splitLayout(cellWidths = c("25%","75%"), plotOutput("plot1"), plotOutput("plot2"))shinyApp(ui, server)# All cells at 300 pixels wide, with cell padding# and a border around everythingui <- splitLayout( style ="border: 1px solid silver;", cellWidths =300, cellArgs = list(style ="padding: 6px"), plotOutput("plot1"), plotOutput("plot2"), plotOutput("plot3"))shinyApp(ui, server)}
See Also
Other layout functions: fillPage(), fixedPage(), flowLayout(), fluidPage(), navbarPage(), sidebarLayout(), verticalLayout()