将单选按钮添加到选项卡时遇到问题。
如下图所示,该按钮显示在页面底部。
如何将单选按钮移至火山图选项卡的顶部?
mainPanel(
tabsetPanel(id="foldchanges",type = "tabs",
tabPanel(title="Summary", value=1, verbatimTextOutput("summary_foldchanges")),
tabPanel(title="Volcano Plot", value=2, plotOutput("volcanoplot"),
radioButtons("comparison", label = "Select comparison:",
choices = list(
"option1" = "option1",
"option2" = "option2",
"option3" = "option3",
"option4" = "option4"),
selected = "option2")
),
tabPanel("Table normalized",value=3,
dataTableOutput("tablenormalized"))
)
答案 0 :(得分:0)
您可以尝试将单选按钮输入放在绘图之前:
mainPanel(
tabsetPanel(id="foldchanges",type = "tabs",
tabPanel(title="Summary", value=1, verbatimTextOutput("summary_foldchanges")),
tabPanel(title="Volcano Plot", value=2,
radioButtons("comparison", label = "Select comparison:",
choices = list(
"option1" = "option1",
"option2" = "option2",
"option3" = "option3",
"option4" = "option4"),
selected = "option2"),
plotOutput("volcanoplot")
),
tabPanel("Table normalized",value=3,
dataTableOutput("tablenormalized")))))
这样做,单选按钮将位于火山图选项卡的顶部。那是你想做的吗?