Re: [R] Adding line plot to a barplot

2010-02-01 Thread Greg Snow
Instead of using par(new=T), use the lines function instead of plot to add to an existing plot. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bou

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