s.html#cb220-21"></a><span class="st">  </span><span class="kw">style</span>(<span class="dt">text =</span> text_y, <span class="dt">traces =</span> <span class="dv">2</span>)</span></code></pre></div>
<div class="figure" style="text-align: center"><span id="fig:custom-predict-text"></span>
<img src="images/custom-predict-text.png" alt="Using the return value of ggplotly() to populate a custom text attribute." width="100%" data-url="/interactives/custom-predict-text.html" />
<p class="caption">
FIGURE 25.10