title: Fill area under the curve - R plot
body: <p>I am trying to fill the area under the plot curve with color. This is my data:</p>
  
  <pre><code>WOL EB1 EB2 EB3
  -4  -9.61818    5.38182 15.38182
  -3  -11.75152   3.24848 13.24848
  -2  -13.01212   1.98788 11.98788
  -1  -16.16364   -1.16364    8.83636
  1   -33.8606    -18.8606    -8.8606
  2   -27.897 -12.897 -2.897
  3   -25.4242    -10.4242    -0.4242
  4   -23.09697   -8.09697    1.90303
  5   -21.01212   -6.01212    3.98788
  6   -18.73333   -3.73333    6.26667
  7   -16.45455   -1.45455    8.54545
  8   -16.06667   -1.06667    8.93333
  9   -15.193939  -0.193939   9.806061
  10  -14.175758  0.824242    10.824242
  11  -12.13939   2.86061 12.86061
  12  -11.84848   3.15152 13.15152
  </code></pre>
  
  <p>My code is: </p>
  
  <pre><code>cord.x &lt;- c(eb$WOL)
  cord.y &lt;- c(eb$EB1)
  polygon(cord.x,cord.y,col='red',border = NA)
  </code></pre>
  
  <p>But this fill the area above and I could not find the way to do the area under.
  I also try the plotly package but without success.
  My wish is to have three curves (WOL~EB1; WOL~EB2; and WOL~EB3) and three corresponding areas with different colors.</p>
  
  <p>Can you please help.
  Many thanks,
  Phuong</p>