title: Adding lines to barplot in a different Y-axis in R
body: <p>I've the following simple data. I wish to plot the "V" vs. D1,D2,D3 values as side-by-side bar plots and  the cumulative sums,CS1,CS2,CS3 as lines, and at a different Y-scale . While it is relatively easy to plot the side-by-side bar plots as shown in the <a href="http://i.stack.imgur.com/GL9IB.png" rel="nofollow">First Figure</a> I'm finding it difficult to add the line plots for the CS1-CS3 columns. The final plot would look something like the <a href="http://i.stack.imgur.com/Yp8zf.png" rel="nofollow">Second Figure</a>
  Thanks for your help</p>
  
  <pre><code>V   D1  D2  D3  CS1 CS2 CS3
  10  2038    1806    1643    72.81171847 64.52304394 58.69953555
  20  550 709 757 92.46159343 89.85351911 85.7449089
  30  142 192 271 97.53483387 96.71311183 95.42693819
  40  45  61  80  99.14255091 98.89246159 98.28510182
  50  12  20  30  99.57127546 99.6070025  99.35691318
  60  5   6   10  99.74991068 99.82136477 99.71418364
  70  2   2   3   99.82136477 99.89281886 99.82136477
  80  4   1   2   99.96427295 99.92854591 99.89281886
  90  1   0   1   100.0000000 99.92854591 99.92854591
  100 0   1   0   100.0000000 99.96427295 99.92854591
  </code></pre>