, defaults to <code>'Set2'</code>).
</p>
</div>
<p>The <strong>plotly</strong> package takes a purely functional approach to a layered grammar of graphics <span class="citation">(Wickham <a href="#ref-ggplot2-paper" role="doc-biblioref">2010</a>)</span>.<a href="#fn2" class="footnote-ref" id="fnref2"><sup>2</sup></a> The purely functional part means, (almost) every function anticipates a <strong>plotly</strong> object as input to it’s first argument and returns a modified version of that <strong>plotly</s