title: Drawing sin function with R and positioning them on the x-axis
body: <p>This is my code:</p>
  <pre><code>library(ggplot2)
  df &lt;- data.frame(x = 0:10, y = 0:10)
  curve &lt;- tibble( z_1 = seq(0, 20, length.out = 1500),x_1 = sin(z_1),
                  z_2 = sin(x_1)+2, z_3 = sin(x_1)+5)
  
  base &lt;- ggplot(df, aes(x, y)) + geom_blank()
  base + geom_path(data = curve, aes(x = x_1,y = z_1), color  ='red')+
    geom_path(data = curve, aes(x = x_1+1,y = z_1), color  ='red')+
    geom_path(data = curve, aes(x = x_1+2,y = z_1), color  ='red')+
    geom_path(data = curve, aes(x = x_1+3,y = z_1), color  ='red')
  </code></pre>
  <p>I want the output to be something like this. But I would like to have the curves produced by <code>geom_path</code> in <code>x = 1, x = 2, x = 3, x = 4.</code></p>
  <p>How can I do this? Should I change de data.frame?</p>
  <p>Many thanks</p>