Hi, it looks like the plotOutput is not inside the tabPanel:
tabPanel("Tab 1"),
withSpinner(plotOutput("plot1"))
I think it should be:
tabPanel("Tab 1",
withSpinner(plotOutput("plot1")))
Also, it looks like you're missing a parent tabsetPanel(), but I'm not 100% sure about that one.