【发布时间】:2016-06-16 13:50:03
【问题描述】:
我有一个像这样的非常基本的信息框,并且想要调整高度,因为当前高度对于我要合并的东西来说太过分了。
知道我该怎么做吗?我尝试了这里的建议:r shinydashboard - change height of valueBox。但是,这并没有任何改变。
sidebar <- dashboardSidebar(
sidebarMenu(id = 'sidebarmenu',
menuItem('About', tabName = 'about'))
)
about <- tabItem('about', fluidPage(
fluidRow(
infoBoxOutput('age')
)
)
)
body <- dashboardBody(
tabItems(
about
)
)
ui <- dashboardPage(
dashboardHeader(
title = 'My App'
),
sidebar = sidebar,
body = body
)
server <- function(input, output) {
output$age <- renderInfoBox({
infoBox('Age: ', 50, icon = icon('list'), width = 6)
})
}
shinyApp(ui = ui, server = server)
【问题讨论】:
标签: r shiny shinydashboard