title: conditionalPanel and selectInput
body: <p>Here is my problem; I can't set up properly the <strong>conditionalPanel</strong> to work with the <strong>selectInput</strong>. What I need is to plot <em>apligua</em> when "AP LIGUA" is selected, and <em>lascruzadas</em> when "LAS CRUZADAS" is selected. But Shiny is ploting both graphs.</p>
  
  <p>Help please...</p>
  
  <p><strong>In the Server:</strong></p>
  
  <pre><code>vars &lt;- data.frame(location = c("AP LIGUA",
                                "LAS CRUZADAS"),
                   lat = c(-32.45,
                           -32.183333),
                   lon = c(-71.216667,
                           -70.802222)
  )
  
  output$apligua &lt;- renderPlotly({
   theme_set(theme_bw()) 
   ggplot(aes(x = datos2$horafecha, y = datos2$altura2), data = datos2) + 
     geom_line() +
     geom_point() +
     geom_smooth(method = "auto", colour='blue', span=0.2) +
     ylab("Altura (m) ") + 
     xlab("Meses")
  })
  
  output$lascruzadas &lt;- renderPlotly({
   theme_set(theme_bw()) 
   ggplot(aes(x = datos$horafecha, y = datos$altura2), data = datos) + 
     geom_line() +
     geom_point() +
     geom_smooth(method = "auto", colour='blue', span=0.2) +
     ylab("Altura (m) ") + 
     xlab("Meses")
  })
  </code></pre>
  
  <p><strong>In the UI</strong></p>
  
  <pre><code>selectInput(inputId = "myLocations", label = "Estación",
                                                choices = vars$location),
  
  conditionalPanel("input.myLocations" == "LAS CRUZADAS",
                                  plotlyOutput("lascruzadas", height = "100%")
                                  ),
  
  conditionalPanel("input.myLocations" == "AP LIGUA",
                                  plotlyOutput("apligua", height ="100%")
                                  )
  </code></pre>
  
  <p><strong><em>(ERROR EDITED)</em></strong></p>