Re: [R] Adding line plot to a barplot

2010-02-01 Thread Greg Snow
r-help-boun...@r- > project.org] On Behalf Of Nadine Kilsby > Sent: Sunday, January 31, 2010 11:41 PM > To: r-help@r-project.org > Subject: [R] Adding line plot to a barplot > > Hi, > I am trying to add a line plot of barplot, and while the following > script > works: >

Re: [R] Adding line plot to a barplot

2010-02-01 Thread Jim Lemon
On 02/01/2010 05:40 PM, Nadine Kilsby wrote: Hi, I am trying to add a line plot of barplot, and while the following script works: barplot(DATA1,bty='c') par(new=T) plot(DATA2,type="l",axes=F,xlab="",ylab="",bty='c') axis(4) for some reason the y axis' do not align (the 0s are not in the same po

[R] Adding line plot to a barplot

2010-02-01 Thread Nadine Kilsby
Hi, I am trying to add a line plot of barplot, and while the following script works: barplot(DATA1,bty='c') par(new=T) plot(DATA2,type="l",axes=F,xlab="",ylab="",bty='c') axis(4) for some reason the y axis' do not align (the 0s are not in the same position). Is this because I am trying to overla