title: ggplot2 code runs and updates plot but no data actually shows up
body: <p>I'm trying to produce a graph using <code>ggplot2</code> in R. While I am able to generate the graph I want using <code>plot()</code> and when I run the ggplot code below it shows up with the proper axes, but there's no data or scale.</p>
  
  <p>Data looks something like this: </p>
  
  <pre><code>data &lt;- data.frame(area=c("alpha", "alpha", "bravo", "bravo", "charlie", "charlie"),
                     year=c(2001, 2002, 2001, 2002, 2001, 2002),
                     rate=c(.94, .90, .83, .87, .87, .95))
  </code></pre>
  
  <p>where area is a character variable and year/rate are but numerical. </p>
  
  <p>If I run</p>
  
  <pre><code>plot(data$year, data$rate)
  </code></pre>
  
  <p>I get in the plot window the graph that I expect to see. What I'm trying to do is recreate this in ggplot as a line graph. Here's what I tried:</p>
  
  <pre><code>gg &lt;- ggplot(data=data, aes(x="year", y="rate", group="area"))
  gg + geom_point()
  gg + geom_line()
  gg
  
  # also tried subsetting to remove the group issue, thinking that might help but it didn't. also removed line from this too
  temp &lt;- data[data$area=="alpha",]
  gg &lt;- ggplot(data=temp, aes(x="year", y="rate"))
  gg + geom_point()
  gg
  
  # also tried this which manages to put a dot in the middle of the still empty plot
  ggplot(data=test) +
       geom_point(mapping=aes(x="Year", y="Attendance Rate", group="Area"))
  </code></pre>
  
  <p>In both instances, I get the same result: the code runs fine (error free) and the plot window refreshes to whichever one I treid most recently, but while it has proper X and Y labels (year/rate) it doesn't actually put the data on there. There also is no scale so it's not reading that information in either, apparently.</p>
  
  <p>What am I doing wrong here?  I've been using the guides and reference sheets below but I (at least would like to think I) am recreating them properly but clearly I'm not. </p>
  
  <p><a href="https://www.rstudio.com/wp-content/uploads/2016/11/ggplot2-cheatsheet-2.1.pdf" rel="nofollow noreferrer">https://www.rstudio.com/wp-content/uploads/2016/11/ggplot2-cheatsheet-2.1.pdf</a></p>
  
  <p><a href="http://r-statistics.co/ggplot2-cheatsheet.html" rel="nofollow noreferrer">http://r-statistics.co/ggplot2-cheatsheet.html</a></p>
  
  <p><a href="http://www.sthda.com/english/wiki/ggplot2-line-plot-quick-start-guide-r-software-and-data-visualization" rel="nofollow noreferrer">http://www.sthda.com/english/wiki/ggplot2-line-plot-quick-start-guide-r-software-and-data-visualization</a></p>
  
  <p><a href="http://tutorials.iq.harvard.edu/R/Rgraphics/Rgraphics.html" rel="nofollow noreferrer">http://tutorials.iq.harvard.edu/R/Rgraphics/Rgraphics.html</a></p>