gpt4 book ai didi

R 水平 Shiny 显示 wellPanel 对象

转载 作者:行者123 更新时间:2023-12-03 03:22:16 24 4
gpt4 key购买 nike

我有wellPanel:

   wellPanel(
h5("Accuracy table:"),
tableOutput(accuracy_tablename))
)

enter image description here

我想水平显示 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,]
})

}
))

关于R 水平 Shiny 显示 wellPanel 对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22507309/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com