user interface - Shinydashboard UI - boxes and columns -
is possible have columns within box in ui? have serval inputs , want of them in box side side (and not in separate row each input)
yes possible have columns within box in ui.
you can have @ following code:
library("shinydashboard") body <- dashboardbody( box(title = "box", width = 12, status = "warning", solidheader = true, collapsible = true, column(width = 6, plotoutput(outputid = "plot1")), column(width = 6, plotoutput(outputid = "plot2")) ) ) server <- function(input, output) { output$plot1 <- renderplot({ plot(rnorm(10)) }) output$plot2 <- renderplot({ plot(rnorm(20)) }) } shinyapp( ui = dashboardpage( dashboardheader(), dashboardsidebar(), body ), server = server )
Comments
Post a Comment