="co"># Preparing grid for analysis</span></span></span>
<span class="r-in"><span><span class="va">grid_reg</span> <span class="op">&lt;-</span> <span class="fu"><a href="grid_from_region.html">grid_from_region</a></span><span class="op">(</span>region <span class="op">=</span> <span class="va">mx</span>, cell_size <span class="op">=</span> <span class="fl">100</span><span class="op">)</span></span></span>
<span class="r-in"><span></span></span>
<span class="r-in"><span><span class="co"># Running analysis w