eCode r"><code class="sourceCode r"><span id="cb19-1"><a href="overview.html#cb19-1"></a>p &lt;-<span class="st"> </span><span class="kw">ggplot</span>(diamonds, <span class="kw">aes</span>(<span class="dt">x =</span> <span class="kw">log</span>(carat), <span class="dt">y =</span> <span class="kw">log</span>(price))) <span class="op">+</span><span class="st"> </span></span>
<span id="cb19-2"><a href="overview.html#cb19-2"></a><span class="st">  </span><span class="kw">geom_hex</span>(<span class="dt">bins =