title: How can I change the x axis labels in this ggplot to their pi symbols?
body: <p><a href="https://i.stack.imgur.com/wA3EJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wA3EJ.png" alt="enter image description here"></a></p>
  
  <p>I want the x axis labels of this graph to be "0", "π/2", "π", "3/2*π", "2*π" </p>
  
  <p>I don't want them to be the actual values of 0, 1.57. 3.14.. etc.</p>
  
  <p>But if i try to do something like <code>labels  = c(seq(0, 2*pi, pi/2))</code> it makes a crazy graph with no pi values in the x axis.</p>
  
  <pre><code>
  x &lt;- seq(0,2*pi, 0.01)
  y &lt;- sin(x)
  
  sin(pi)
  
  ggplot() +
  
    geom_line(aes(x,y)) +
  
    scale_x_continuous(breaks  = c(seq(0, 2*pi, pi/2))) +
  
    theme_bw()
  </code></pre>
  
  <p>Is there some other function that will change the x axis labels?</p>