title: R - Aesthetics must be either length 1 or the same as the data
body: <p>I can't seem to get around this error where it says the aesthetics must either be length 1 or the same as the data, which in my case is 368.<br />
  I have created two variables from the data, both of which are 18 values. These are my x and y values, where the x axis is the year, and the y axis is the vote share of radical right candidates in those years. My variables are the same length, so why is this error occurring and how do I correct this?<br />
  <img src="https://i.stack.imgur.com/DwXak.png" alt="Too new to include pics yet, so here's a link to what I'm seeing..." /></p>
  <pre><code>austria_year &lt;- elect$year[26:43]
  
  ggplot(data=elect, aes(x=austria_year, y=austria_rad_right)) +
    geom_line() +
    xlab(&quot;Year&quot;) +
    ylab(&quot;Radical Right Vote Share&quot;) +
    ggtitle(&quot;Austria Radical Right Support Over Time&quot;) + 
    theme_gray() +
    theme(panel.grid=element_blank())
  </code></pre>