How to force axis values to scientific notation in ggplot : <p>I have the following code:</p>

<pre><code> library(ggplot2)
 df &lt;- data.frame(y=seq(1, 1e5, length.out=100), x=sample(100))
 p  &lt;- ggplot(data = df, aes(x=x, y=y)) + geom_line() + geom_point()
 p
</code></pre>

<p>Which produce this image:</p>

<p><a href="https://i.stack.imgur.com/oHh0R.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/oHh0R.jpg" alt="enter image description here"></a></p>

<p>As mentioned in the image above how can I change the
y-axis value to scientific notation?</p>
