</a>  <span class="fu">ylim</span>(<span class="fu">c</span>(<span class="dv">0</span>, <span class="dv">50</span>))</span></code></pre></div>
<p><img src="bookdown_files/figure-html/axis-limit-1.png" width="864" /></p>
<p>Alternatively you can use <code>scale_y_continuous(limits = c(0, 50))</code> or <code>coord_cartesian(ylim = c(0, 50))</code>. The former removes all data points outside the range while the second adjusts the visible area and is similar to <code>ylim(c(0, 50))</code>. You may wonder: <em>