Re: [R] Barplot with lines

2012-11-25 Thread Ripples
Hi Jim, I did the same and it worked. Thanks a lot! SK On Fri, Nov 23, 2012 at 6:11 PM, Jim Lemon j...@bitwrit.com.au wrote: On 11/24/2012 02:21 AM, skanap wrote: Hi Jim, Thank you for the reply. But, when I use Barpos I get this error. plot(mydata$score,barpos) Error in xy.coords(x,

[R] Barplot with lines

2012-11-22 Thread Ripples
Hi, I'm trying to plot stacked barplot with lines on it. Here is the data. emp days val1 val2 score 1 21 1 0 1200 2 35 1 1 na 3 42 na na 3000 4 53 2 1 2100 5 64 1 0 na 6 73 na na 1400 My X-axis is days. I'm looking to plot val1,val2 as stacked bars and score as lines with different y-axis. I