【发布时间】:2018-06-01 04:29:09
【问题描述】:
我想在侧边栏“otu selection”和“anova”中有 2 个选项卡。 根据在侧边栏中选择的选项卡,我想在主面板中输出不同的图表或表格。
目前我收到一个错误:
ERROR: object 'input.tabs' not found
这是我的脚本。
ui <- fluidPage(
# Make a title to display in the app
titlePanel(" Exploring the Effect of Metarhizium on the Soil and Root Microbiome "),
# Make the Sidebar layout
sidebarLayout(
# Put in the sidebar all the input functions
sidebarPanel(
tabsetPanel(id="tabs",
tabPanel("otu","OTU selection", selectInput('dataset', 'dataset', names(abundance_tables)),
uiOutput("otu"), br(),
# Add comment
p("For details on OTU identification please refer to the original publications")),
tabPanel("anova","anova", sliderInput('pval','p-value for significance',
value=5,min=0,max=0.5,step=0.00001),
selectInput('fact_ofInt','factor of interest',FactorsOfInt))
)
),
# Put in the main panel of the layout the output functions
mainPanel(
conditionalPanel(condition=input.tabs == 'otu',
plotOutput('plot')
# dataTableOutput("table")
),
conditionalPanel(condition=input.tabs == 'anova',
plotOutput('plot2')
# dataTableOutput("table")
)
)
)
)
我看过类似的帖子,但仍需要一些指导。
谢谢
【问题讨论】:
标签: shiny