ceCode r"><code><span><span class="fu">plotSUR_hist</span><span class="op">(</span></span>
<span>  <span class="va">surrogateValues</span>,</span>
<span>  <span class="va">observedValue</span>,</span>
<span>  sides <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"two.sided"</span>, <span class="st">"greater"</span>, <span class="st">"less"</span><span class="op">)</span><span class="op">[</span><sp