Can anyone see a mistake in this code? : <p>I'm trying to make some plots of distributions in R and i have the code but it just won't run, it says there's an unexpected symbol. </p>

<pre><code>curve(dexp(x, rate=3) xlim=c(0,40), main="exp(rate=3) population          
 distribution", xlab="X", ylab="f(x)")
</code></pre>

<p>Im trying to plot an exponential random variable with rate 3.</p>
