chor" aria-label="anchor" href="#varying-fill-colors-along-the-x-axis"></a>
</h3>
<p>Sometimes we would like to have the area under a ridgeline not filled
with a single solid color but rather with colors that vary in some form
along the x axis. This effect can be achieved with the geoms
<code>geom_ridgeline_gradient</code> and
<code>geom_density_ridges_gradient</code>. Both geoms work just like
<code>geom_ridgeline</code> and <code>geom_density_ridges</code>, except
that they allow for varying fill colors. 