Re: [R] Barplot and line x-axis positions

2011-01-19 Thread Greg Snow
You can use the updateusr function in the TeachingDemos package to get them to match. Sent from my iPod On Jan 18, 2011, at 10:05 AM, "Andy Aldersley" wrote: > > > > > > Hello all, > Hoping that there is a fairly simple solution to my query... > I'm trying to overlay a line plot of some

Re: [R] Barplot and line x-axis positions

2011-01-19 Thread Jim Lemon
On 01/19/2011 04:04 AM, Andy Aldersley wrote: Hello all, Hoping that there is a fairly simple solution to my query... I'm trying to overlay a line plot of some data onto a barplot of different data. The y-axes are different for each set of data but the x-axes are the same (1:12, correspond

Re: [R] barplot and line

2010-04-01 Thread Tal Galili
idn't really understand what you mean. Can you give me an > example? > > Thank you. > > > > > --- On *Thu, 4/1/10, Tal Galili * wrote: > > > From: Tal Galili > Subject: Re: [R] barplot and line > To: "Roslina Zakaria" > Cc: r-help@r-projec

Re: [R] barplot and line

2010-04-01 Thread Greg Snow
Look at the 1st example on the help page for the updateusr function in the TeachingDemos package for a way to align a barplot and information added to it. See the axis function for creating your own custom axis. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare g

Re: [R] barplot and line

2010-04-01 Thread Tal Galili
Hi Roslina In order to get the X coordinates of your barplot, assign the barplot to a variable: x.coor <- barplot(something) Now use the x.coor for your line plot. Cheers, Tal Contact Details:--- Contact me: tal.gal...@gmail