title: Plotting s-curve function in R
body: <p><a href="https://i.stack.imgur.com/S6hBn.jpg" rel="nofollow noreferrer">enter image description here</a>I would like to plot a basic s-curve. After many hours I learned how to plot a function of x-squared. However I am stumped by how to do this for the s-curve. Thank you very much. </p>
  
  <pre><code>p1&lt;- ggplot(data.frame(x=c(0,2)), aes(x)) + 
  stat_function(fun=function(x)x^3, geom="line")
  </code></pre>