title: Fill different colors for each quantile in geom_density() of ggplot
body: <p>I am using ggplot to show percentiles of the data. I am using the following code,</p>
  
  <pre><code>data &lt;- seq(from=0,to=30,length.out=1000)
  
  q &lt;- quantile(data)
  
  ggplot()+ 
    geom_density(aes(x=data)) +  
    annotate(geom="text", x=q, y=0, label=names(q)) +
    theme(text = element_text(size=10)) +
    geom_vline(x=q, linetype = "longdash")
  </code></pre>
  
  <p>The following is the graph I am getting,</p>
  
  <p><a href="https://i.stack.imgur.com/rVrD5.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/rVrD5.jpg" alt="enter image description here"></a></p>
  
  <p>I am looking to fill different colors for each segment. i.e. for 0-25% one color and 25-50 another color. Is it possible to do that?</p>
  
  <p>Also the vertical lines are running through the entire graph. I want to stop it until the curve alone. Instead of running through it completely.</p>
  
  <p>can anybody help me in doing these both?</p>