s="sourceCode" id="cb8"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="co"># Adjust y_lower_bound dynamically to remove noisy small values</span></span>
<span><span class="va">disease_threshold</span> <span class="op">&lt;-</span> <span class="fl">25</span></span>
<span><span class="va">y_lower_bound</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/ifelse.html" class="external-link">ifelse</a></span><span class="op">(</span><span class="