Really apprecaite the feedback and apologize for not having more there. This is what I am trying to run, but get an error when I run my body <- dashboardBody()
Error in lapply(list(...), tagAssert, class = "tab-pane") :
argument is missing, with no default
I don't understand the error as I think I have the tab defined
sidebar <- dashboardSidebar(
sidebarMenu(
menuItem("Home", tabName = "home", icon = icon("home")),
menuItem("Player Stats", tabName = "playerstats", icon = icon("address-book")),
menuItem("Four Factors", tabName = "teamstats", icon = icon("users")),
menuItem("On/Off", tabName = "OnOff", icon = icon("strava"))
)
)
body <- dashboardBody(
tabItems(
tabItem(tabName = "home",
fluidPage(
h2("Welcome to HoopR"))
),
tabItem(tabName = "playerstats",
fluidPage(
h2("Player Stats"),
DT::dataTableOutput("PlayerStats"))
),
tabItem(tabName = "teamstats",
fluidPage(
fluidRow(
column(8,
h2("Team Overview"),
selectizeInput("Team", "Select Team:", TONEFF),
plotOutput("OwnFF"),
plotOutput("OppFF")
),
column(4, h3("Key"), "More text")))
),
tabItem(tabName = "OnOff",
fluidPage(
h2("On/Off Splits"))
),
)
)
HoopR <- dashboardPage(header, sidebar, body)
server <- function(input, output) {
output$PlayerStats = DT::renderDataTable(
PlayerStats)
output$OwnFF <- renderPlot({
TONEFFown %>%
dplyr::filter(Team == input$Team | Team == "NCAA Average") %>%
ggplot(.,aes(x=question,y=response, color=Team)) + labs(title="Offensive Overview", x=input$Team, y="Four Factors") + geom_point()
})
output$OppFF <- renderPlot({
TONEFFopp %>%
dplyr::filter(Team == input$Team | Team == "NCAA Average") %>%
ggplot(.,aes(x=question,y=response, color=Team)) + labs(title="Defensive Overview", x=input$Team, y="Four Factors") + geom_point()
})
}
shinyApp(ui = HoopR, server = server)