Description Usage Arguments Details Author(s) Examples
Add a container.
1 2 3 4 5 | fullContainer(..., class = "")
pageContainer(..., class = "")
multiContainer(..., class = "")
|
... |
any element. |
class |
Class of element. |
Pass within your grid, sections or slides.
John Coene, jcoenep@gmail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | if(interactive()){
library(shiny)
ui <- fullPage(
center = TRUE,
fullSection(
h1("Containers")
),
fullSection(
h1("Without container"),
plotOutput("plot1")
),
fullSection(
fullContainer(
h1("With container"),
plotOutput("plot2"),
pre(
code(
"fullContainer()"
)
)
)
)
)
server <- function(input, output){
output$plot1 <- renderPlot({
plot(mtcars$wt, mtcars$mpg)
})
output$plot2 <- renderPlot({
plot(mtcars$wt, mtcars$mpg)
})
}
shinyApp(ui, server)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.