title: How can I make an interactive line graph through Shiny?
body: <h1>Problem</h1>
  <p>I'm new to Shiny, so apologies if I'm way off on this. I'm trying to make an interactive line graph through Shiny so a country can be chosen through drop down list, and then an accompanying line graph can show how suicides/100k people within that country have changed from 1987 to 2015. It looks like I have the Input portion correct, but I am struggling with coding the appropriate output plot. More specifically, I am unsure of where to introduce the reactivity portion of this (where do I put the input$country?).</p>
  <h1>Data Structure (only first 3 rows)</h1>
  <pre><code>|year| |age group| |country  | |Suicides Per Age Group Per 100K Population|
  |----| |---------| |---------| |------------------------------------------|
  |1987| |5 - 14   | |Argentina| |.47                                       |
  |1987| |5 - 14   | |Australia| |.28                                       |
  |1987| |5 - 14   | |Austria  | |.44                                       |
  </code></pre>
  <h1>My current code</h1>
  <pre><code>library(shiny)
  library(tidyverse)
  
  # UI
  ui &lt;- fluidPage(selectInput(inputId = &quot;country&quot;, 
                              label = &quot;Choose a Country&quot;, 
                              choices = data$country[!duplicated(data$country)]), # list of non-duplicated countries
                  plotOutput(&quot;line&quot;))
  
  server &lt;- function(input, output) {
    output$line &lt;- renderPlot({ggplot(dash_plot_data, 
                                      aes(year, 
                                          `Suicides Per Age Group Per 100K Population`, 
                                          color = age, group = age,
                                          aes())) + 
        geom_line()
    })
  }
  
  # View App
  shinyApp(ui, server)
  </code></pre>
  <p>Again, I'm not sure where to insert the input$country portion. Any help would be greatly appreciated.</p>