【发布时间】:2016-03-24 04:25:49
【问题描述】:
我使用库 shinydashboard 来编写我的 ui.R。在我的dashboardBody部分,我写道:
fluidRow(infoBoxOutput("dri"))
然后在我的 server.R 中,我写道:
output$dri = renderInfoBox({
infoBox(
width = 2,
title = tags$b("Score"),
value = tags$b("100"),
color = "aqua",
fill = TRUE,
icon = icon("edit")
)
})*
但宽度不会变为 2;它仍然使用默认值,即 4(整个网页宽度的 1/3)。 有人会帮我解决这个问题吗?非常感谢!
【问题讨论】:
-
您的
infoBox是基于列还是基于行的布局?
标签: r shiny shinydashboard