an></div><div class='input'><span class='fu'><a href='https://r-spatial.github.io/sf/reference/plot.html'>plot</a></span><span class='op'>(</span><span class='va'>p</span><span class='op'>)</span>
</div><div class='img'><img src='line_sample-1.png' alt='' width='700' height='433' /></div><div class='input'><span class='va'>p</span> <span class='op'>&lt;-</span> <span class='fu'>line_sample</span><span class='op'>(</span><span class='va'>l</span>, <span class='fl'>50</span>, weights <span class='op'>=</span>