【发布时间】:2014-03-21 04:22:47
【问题描述】:
我找到了如何在 Shiny 中更改用户界面的背景颜色。我发现的撤回是它还为我用tableOutput 显示的表格的背景着色。这里我展示了一个虚拟示例。
ui.R
shinyUI(pageWithSidebar(
headerPanel("虚拟"),
侧边栏面板( 标签$hr() ),主面板(
# This is what I use to change the background color list(tags$head(tags$style("body {background-color: #ADD8E6; }"))), tableOutput("dummy") ) ))
服务器.R
shinyServer(function(input, output) { output$dummy
我得到的是这个
而我想要得到的(我使用 GIMP 重新创建它)是
感谢大家的帮助!
【问题讨论】: