I'm attempting my first Markdown doc and everything has been going smoothly until I get the error
"Error in eval(expr, envir, enclos) : object 'input' not found"
with this chunk
{r, echo=FALSE}
inputPanel(
radioButtons("category",label= "Select Category",choices=c("diffPts","diffGF","diffGA","diffGD","diffpos"),inline = TRUE)
)
renderPlot({
ggplot(clubSeason, aes(x=team, y=input$category)) + geom_boxplot()
})
if I hardcode e.g y="diffPts"
the chart displays. Putting a print()
around the ggplot does not help
TIA
See Question&Answers more detail:os