 sum, mean, etc), and positional adjustments (e.g., dodge, stack, etc). If you’re paying attention, you’ll notice that in the examples thus far, we have not specified a layer! The layer has been added for us automatically by <code>plot_ly()</code>. To be explicit about what <code>plot_ly(diamonds, x = ~cut)</code> generates, we should add a <code>add_histogram()</code> layer:</p>
<div class="sourceCode" id="cb13"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb13-1"><a href="overview.ht