anchor" href="#adding-a-custom-built-legend"></a>
</h3>
<p>While the map data are styled in relationship to locations’ broadband
access, we’ll also want to add a legend to our map to communicate the
information to our viewers more clearly. The <code>add_legend()</code>
function in mapgl accommodates both continuous legends (the default,
which we’ll use here) along with categorical legends.</p>
<div class="sourceCode" id="cb10"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span c