我试图在特定选项卡内放置一个selectInput面板,但我不确定该如何实现。在函数tabPanel()中,我尝试在函数plotOutput()之后包含sidebarPanel(),但是sidebarPanel不再在侧边而是在左侧,并遮盖了直方图。是否有一种方法可以正确地嵌入该侧面板到特定的选项卡中,或将该侧面板放在图形的右侧?谢谢!以下是我使用的代码:
mainPanel(
tabsetPanel(
tabPanel("Histogram",plotOutput("histogram")),
tabPanel("Scatter",plotOutput("scatter"),
sidebarPanel(
selectInput("xaxis", label = "x axis",
choices = detectors, selected = detectors[1],width='200px',selectize=FALSE),
selectInput("yaxis", label = "y axis",
choices = detectors, selected = detectors[2],width='200px',selectize=FALSE),
selectInput("population1", label = "Population 1",
choices = files, selected = files[1],width='200px',selectize=FALSE),
selectInput("population2", label = "Population 2",
choices = files, selected = files[1],width='200px',selectize=FALSE),
selectInput("population3", label = "Population 3",
choices = files, selected = files[1],width='200px',selectize=FALSE)
)
),
tabPanel("Table", DT::dataTableOutput("table"))
)
)