blioref">2005</a>; Wickham <a href="#ref-ggplot2" role="doc-biblioref">2009</a>)</span>. To demonstrate, we’ll use <code>plot_ly()</code> to explore the <code>diamonds</code> dataset from <strong>ggplot2</strong> and learn a bit how <strong>plotly</strong> and plotly.js work along the way.</p>
<div class="sourceCode" id="cb8"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb8-1"><a href="overview.html#cb8-1"></a><span class="co"># load the plotly R package</span></span>
<span id="cb8-2"><a