title: R ggplot2 introduce slight smoothing to a line graph with only a few datapoints
body: <p>Not sure if this is a programming question or not...</p>
  
  <p>If I have the data below, which produces a 'spiky' chart, and I'd like to produce a slightly smoothed one using ggplot2 how do I go about it most elegantly. The usual smoothing methods remove too much information. One way I'm considering is to interpolate an extra two data points in between the current set and then take a 2 period moving average or something. That seems like a lot of hard work to code manually so I'll take an answer that automates that elegantly as a last resort.</p>
  
  <pre><code>a=data.frame(year=paste('FY',2001:2012,sep='.'),values=rnorm(12))
  library(ggplot2)
  </code></pre>
  
  <p>As you can see this is spiky and visually unappealing</p>
  
  <pre><code>ggplot(a,aes(x=year,y=values,group=1))+geom_line() 
  </code></pre>
  
  <p>And this removes too much information from the graph</p>
  
  <pre><code>ggplot(a,aes(x=year,y=values,group=1))+stat_smooth(se=F) 
  </code></pre>
  
  <p>Thanks</p>