laying-tooltips" class="section level4">
<h4 class="hasAnchor">
<a href="#logic-for-determining-cursor-location-and-displaying-tooltips" class="anchor"></a>2. Logic for determining cursor location and displaying tooltips</h4>
<p>First, we check whether the cursor is inside the plot panel. If it is not, the element <code>plot_hover</code> of the input will be <code>NULL</code>.</p>
<div class="sourceCode" id="cb8"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb8-1"><a href="#cb8-1" aria-hid