I am developing a shiny application wherein for the first time i am trying to use navbarPage
. Earlier I used to code with sidebar and mainpanel method but that looks elementary level. This navbarpage gives a website Look to the Application.
I am unable to control the inputs in a appropriate tab as required. The scenario is as such that one can see in Image Select io
is getting displayed in every tab where i required input. Select io
should be displayed only in the Anomaly
tab.
shinyUI(fluidPage(theme = shinytheme("spacelab"),
tags$head(includeScript("googleanalytics.js")),
navbarPage(p(strong(code("IOT Analytics"))),
tabPanel("Introduction",tags$br(),
p(strong(code("Brief About the Approach")))
) ,
# First Navigation-Tab Panel
tabPanel("Data-Glimpse",tags$br(),
# Application title
#titlePanel("Classification of Heart Disease w/KNN"),
p(strong(code("Data Overview"))),
DT::dataTableOutput('Raw_Data')
) ,
# Second navigation-Tab Panel
tabPanel("Data-Summary",tags$br(),
p(strong(code("Dimension"))),
verbatimTextOutput("dim"),
p(strong(code("Summary"))),
verbatimTextOutput("sum")
),
# Third navigation-Tab Panel (select io should only displayed in Anomaly Detection Tab)
navbarMenu("Anomaly Detection",
column(4,uiOutput("selt1"))
,
tabPanel("Visualisation",
tags$br(),
plotlyOutput("plot1", height = "600px")
),
tabPanel("Anomaly-01",
# fluidRow(
# column(4,uiOutput("selt1"))
# ),
tags$br(),
dataTableOutput("temp")
,value = "T4_2"),
tabPanel("Error Insight", tags$br()
)
),
tabPanel("About",tags$br())
#---------------------------------------------End
)))