title: add axis ticks and labels in ggplot2 r
body: <p>Here is data.</p>
  
  <pre><code>X &lt;- 1:10
  Y &lt;- rnorm (length(X), 5, 2)
  ticks &lt;- data.frame (t = c(5, 8, 9), l = c(1:3)) 
  
  plot (X, Y, xaxt = "n")
  
  axis(1, at = ticks$t, labels = ticks$l)
  </code></pre>
  
  <p>I want to do similar job in ggplot2. How can I do it </p>
  
  <p><img src="https://i.stack.imgur.com/irXbm.jpg" alt="enter image description here"></p>