 to supply custom tooltip text to a scatterplot." width="100%" data-url="/interactives/ggplotly-text.html" />
<p class="caption">
FIGURE 25.6: Using the <code>text</code> <strong>ggplot2</strong> aesthetic to supply custom tooltip text to a scatterplot.
</p>
</div>
<p>By default, <code>ggplotly()</code> will display all relevant aesthetic mappings (or computed values), but you can restrict what aesthetics are used to populate the tooltip, as shown in Figure <a href="controlling-tooltips.html#fig:ggplotly-te