我有好面板:
wellPanel(
h5("Accuracy table:"),
tableOutput(accuracy_tablename))
)
我想在wellPanel中水平显示对象。我该如何处理?
先感谢您!
您可以使用“ row”类(或“ row-fluid”类)定义一个div并插入将水平显示的子div(“ spanX”类指定每个div之间的空间)。
shiny::runApp(list(
ui = basicPage(
wellPanel(
tags$div(class = "row",
tags$div(class = "span4",
h5("Accuracy table:")
),
tags$div(class = "span4",
tableOutput("table")
)
)
)
),
server = function(input, output, session) {
output$table <- renderTable({
iris[1,]
})
}
))
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句