Description Usage Arguments Examples
Create a side-by-side selectInput
1 | selectInput3(..., width = 100)
|
... |
arguments to be passed to selectInput |
width |
The width of the input in pixel |
1 2 3 4 5 6 7 8 9 10 11 12 | library(shiny)
# Only run examples in interactive R sessions
if (interactive()) {
ui <- fluidPage(
selectInput3("sex", "sex", choices=c("Male","Female")),
selectInput3("smoking", "smokingStatus", choices=c("Never","Ex-smoker","Smoker"))
)
server <- function(input, output) {
}
shinyApp(ui, server)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.