title: How to pass varSelectInput to ggplot2 R Shiny
body: <p>I'm making an app where users select the x and y axes, and the facet variable they want from a list of data frame names using varSelectInput.  I've tried many different ways I've seen suggested on stackOverflow, and can't get any of them to work in my case.  Here's the renderUI code with the inputId's for each variable.</p>
  <pre><code>    output$descrxaxis_Variable &lt;- renderUI({
        varSelectInput(inputId = &quot;descrxaxis&quot;, label = &quot;Choose x axis variable&quot;, data = descrDataMelted_selVars$df)})
      
      output$descryaxis_Variable &lt;- renderUI({
        varSelectInput(inputId = &quot;descryaxis&quot;, label = &quot;Choose y axis variable(s)&quot;, data = descrDataMelted_selVars$df,
                       multiple = TRUE, selectize = TRUE)})
      
      output$descrFacet_Variable &lt;- renderUI({
        varSelectInput(inputId = &quot;descrfacet&quot;, label = &quot;Choose facet variable(s)&quot;, data = descrDataMelted_selVars$df,
                       multiple = TRUE, selectize = TRUE)})
  </code></pre>
  <p>My code currently looks like this, which follows the example here:  <a href="https://shiny.rstudio.com/reference/shiny/latest/varSelectInput.html" rel="nofollow noreferrer">https://shiny.rstudio.com/reference/shiny/latest/varSelectInput.html</a>.  I'm getting an error that tells me the input cannot be a list with this code.  The input$descrxaxis contains column names like &quot;day&quot;, &quot;hour&quot;, &quot;month&quot;, &quot;TA&quot;, &quot;PP&quot;, etc.</p>
  <pre><code>    observeEvent(input$descrBtnPlot,{
        p &lt;- ggplot(descrDataMelted_selVars$df, aes(!!input$descrxaxis, !!input$descryaxis))
        
        output$descrSummaryStatsPlot &lt;- renderPlot(p)
      })
  </code></pre>
  <p>Otherwise, I've tried using the .data[[column]] notation to do this, and the !!!rlang::syms(column) notation.  Any help is greatly appreciated.</p>