我在 R 中有一个 SelectInput,它周围有很多空白。这是我的 ui.r 中的选择输入:
library(shiny)
shinyUI(pageWithSidebar(
headerPanel(GetHeader()),
sidebarPanel(
selectInput("date", "Select Date:", GetListOfDays(), width="120px")
#dateInput("date", "Date:", GetListOfDays() ) #value = "2012-02-29")
),
mainPanel(
uiOutput("plots")
)
现在,当我运行报告时,我看到:
您是否看到选择输入左侧的所有空白区域?我该如何修剪或删除它?
谢谢。
看起来好像有一个width
函数中的参数正确。
library(shiny)
shinyUI(pageWithSidebar(
headerPanel(GetHeader()),
sidebarPanel(
selectInput("date", "Select Date:", GetListOfDays(), width="120px"),
width = 2 ### EDIT HERE
),
mainPanel(
uiOutput("plots")
)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)