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

[R] Barplot and line x-axis positions

2011-01-18 Thread Andy Aldersley
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, corresponding with 12 months of observations). The problem

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
greg.s...@imail.org 801.408.8111 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Roslina Zakaria > Sent: Wednesday, March 31, 2010 4:44 PM > To: r-help@r-project.org > Subject: [R] barplot and line > >

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

[R] barplot and line

2010-03-31 Thread Roslina Zakaria
Hi r-users,   I have this data below and would like to plot a barplot overlap with a line. This is my data: > hist_50     pdf_obs pdf_gen.50 1  0.00   0.00 2  0.083156   0.125366 3  0.132196   0.158230 4  0.126866   0.149432 5  0.120469   0.127897 6  0.121535   0.104096 7  0.103412   0.0821