title: How to adjust bandwidth for ridgeplots in R
body: <p>When using the <code>geom_density_ridges</code> function in the <code>ggridges</code> package, it always picks a bandwidth for all the densities in the plot. But is there a way to adjust the bandwidth that it chooses?</p>
  <p>I currently have some code to make a ridge plot, but the bandwidth is too low for the bottom density. I would like to adjust it so that it is smoother and less rough.</p>
  <p><a href="https://i.stack.imgur.com/0DFO7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0DFO7.png" alt="enter image description here" /></a></p>
  <p>Here is my code:</p>
  <pre><code>hier_plot &lt;- ggplot(hier_df, aes(x=x, y=as.factor(beta), fill = factor(beta))) +
    theme(axis.title = element_text(size = 15),
          axis.text = element_text(size = 15),
          legend.text = element_text(size = 10),
          panel.background = element_rect(fill = &quot;#fffffC&quot;)) +
    labs(y = expression(beta), x = 'x', expression(beta), fill = expression(beta)) +
    geom_density_ridges(scale = 2.5) +
    scale_x_continuous(expand = c(0.01, 0)) +
    scale_y_discrete(expand = c(0.05, 0)) +
    scale_fill_brewer(palette = 'Reds')
  
  hier_plot 
  </code></pre>