n><span class="op">)</span></span></span>
<span class="r-plt img"><img src="smooth_density-3.png" alt="" width="700" height="433"></span>
<span class="r-in"><span></span></span>
<span class="r-in"><span><span class="co"># for bounded data, you should use the bounded smoother</span></span></span>
<span class="r-in"><span><span class="va">x_beta</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/stats/Beta.html" class="external-link">rbeta</a></span><span class="op">(</span><span cla