><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="co"># simulate fractal terrain</span></span>
<span><span class="va">surf</span> <span class="op">&lt;-</span> <span class="fu"><a href="../reference/sim_dem.html">sim_dem</a></span><span class="op">(</span>L <span class="op">=</span> <span class="fl">64</span>, smoothness <span class="op">=</span> <span class="fl">0.5</span><span class="op">)</span></span>
<span></span>
<span><span class="co"># fractal dimension using height v