I am plotting a set of data with shading to follow the Lower and Upper Bound values. I applied smoothing using stat_smooth for Est values but I couldn't get shading region specified by the UB and LB values to follow the smoothed line. Here's the data:
 Quantiles   Est    LB    UB
 0.10 -4.39 -4.80 -4.00
 0.25 -3.46 -3.72 -3.22
 0.50 -3.11 -3.29 -2.91
 0.75 -2.89 -3.15 -2.60
 0.90 -1.69 -2.21 -1.09
And here's my ggplot code:
ggplot(data,aes(y=Est,x=Quantiles)) + stat_smooth() + 
geom_ribbon(aes(ymin=LB,ymax=UB),alpha=0.2)
Thanks in advance for any help!
 
     
    