title: ACF Plot with ggplot2: Setting width of geom_bar
body: <p>With <code>acf</code> we can make <code>ACF plot</code> in base <code>R</code> graph.</p>
  
  <pre><code>x &lt;- lh
  acf(x)
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/J0gNv.png" alt="enter image description here"></p>
  
  <p>The following code can be used to get the <code>ACF plot</code> in <code>ggplot2</code>.</p>
  
  <pre><code>conf.level &lt;- 0.95
  ciline &lt;- qnorm((1 - conf.level)/2)/sqrt(length(x))
  bacf &lt;- acf(x, plot = FALSE)
  bacfdf &lt;- with(bacf, data.frame(lag, acf))
  
  library(ggplot2)
  q &lt;- ggplot(data=bacfdf, mapping=aes(x=lag, y=acf)) +
         geom_bar(stat = "identity", position = "identity")
  q
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/Ny0zI.png" alt="enter image description here"></p>
  
  <p><strong>Question</strong></p>
  
  <p>How to get lines rather than bars or how to set the width of bars so that they look like lines? Thanks</p>