title: Same scale on X and Y axis in R curve
body: <p>When I use R's <code>curve()</code> function, is there a way to force it to use the same scale on the X and the Y axis?</p>
  
  <p>For example, consider this R code</p>
  
  <pre><code>mean &lt;- 5
  variance &lt;- 0.05
  curve(exp((((x - mean) / variance)^2) * -0.5), mean - 2, mean + 2)
  </code></pre>
  
  <p>This will give me this plot:</p>
  
  <p><img src="https://i.stack.imgur.com/Ga4cn.png" alt="Plot for curve"></p>
  
  <p>As you can see, the X axis and the Y axis use different scales. How can I fix this?</p>
  
  <p>Note: I know I can manually specify the range of the Y axis (via <code>ylim=</code>) but I'd rather not use this (as this would require adopting it whenever the function changes).</p>