Change plotly chart y variable based on selectInput
问题 I'm creating a simple line chart which renders correctly in Shiny. I've now added a selectInput with the names of 2 different measures, written as they appear in my data set. I'd like my y variable to change accordingly. p <- plot_ly(data = LineChartData(), x= Calendar.Month, y = input$Measure, type = "line", group = Calendar.Year, col = Calendar.Year) Unfortunately, the chart renders with just one point. It's not taking input$Measure and finding that field in my data set. I know when using