我正在尝试在顶部闪亮的 R 应用程序中添加一个框,以容纳简短的描述和徽标。我一直找不到任何有效的代码。我的想法是包含一个水平框并将徽标的一些文本/图像传递到其中,但尚未找到任何解决方案。任何帮助表示赞赏。下面是一些结构代码。
header <- dashboardHeader(title = "May 2017",
titleWidth = 525)
sidebar <- dashboardSidebar(disable = TRUE)
frow2 <- fluidRow(
box(
title = ""
,status = "primary"
,solidHeader = TRUE
,collapsible = TRUE
,dataTableOutput("topTen")
, height = 640
, width = 6
)
,box(
title = ""
,status = "primary"
,solidHeader = TRUE
,collapsible = TRUE
,dataTableOutput("topTenMostVuln")
, height = 640
, width = 6
)
)
frow3 <- fluidRow(
box(
title = ""
,status = "primary"
,solidHeader = TRUE
,collapsible = TRUE
,plotOutput("zscore_chart")
, height = 600
, width = 6
)
,box(
title = "Probabilities by Country and Crisis Type"
,status = "primary"
,solidHeader = TRUE
,collapsible = TRUE
,plotOutput("probability_chart")
, height = 600
, width = 6
)
)
frow4 <- fluidRow(
box(
title = "Output"
,tabBox(
width = 18
,height = 60
,id = "dataTabBox"
,tabPanel(
title = ""
,dataTableOutput("")
)
,tabPanel(
title = ""
,dataTableOutput("")
)
,tabPanel(
title = ""
,dataTableOutput("")
)
,tabPanel(
title = ""
,dataTableOutput("")
)
,tabPanel(
title = ""
,dataTableOutput("")
)
)
,status = "primary"
,solidHeader = TRUE
,collapsible = TRUE
, height = 880
, width = 12
)
)
body <- dashboardBody(frow4, frow3, frow2)
ui <- dashboardPage(header, sidebar, body, skin = "black")
server <- function(input, output) {
})
shinyApp(ui, server)
编辑:我需要添加一个框来容纳一些文本,作为应用程序功能的描述以及徽标,右对齐。