Re: [R] overlap different line in a xyplot (lattice)

2010-12-13 Thread Francesco Nutini
From: fe...@nfrac.org Date: Sun, 12 Dec 2010 11:47:55 +1100 Subject: Re: [R] overlap different line in a xyplot (lattice) To: ehl...@ucalgary.ca CC: nutini.france...@gmail.com; r-help@r-project.org On 12 December 2010 00:08, Peter Ehlers ehl...@ucalgary.ca wrote: On 2010-12-11 03:12

Re: [R] overlap different line in a xyplot (lattice)

2010-12-13 Thread Peter Ehlers
On 2010-12-13 03:13, Francesco Nutini wrote: From: fe...@nfrac.org [...snip...] xyplot(y1 + y2 ~ x | sites, DF, type = b) Great Felix! this is what I was looking for! But if y1 and y2 have a different scales? Can I plot, for example y2, on secondary axis? There are probably good

Re: [R] [r] overlap different line in a xyplot (lattice)

2010-12-11 Thread Francesco Nutini
. How can I use your method? sorry for my ignorance! Francesco Nutini Date: Fri, 10 Dec 2010 10:13:00 -0800 From: ehl...@ucalgary.ca To: nutini.france...@gmail.com CC: r-help@r-project.org Subject: Re: [R] [r] overlap different line in a xyplot (lattice) On 2010-12-10 07:04, Francesco

Re: [R] overlap different line in a xyplot (lattice)

2010-12-11 Thread Peter Ehlers
...@gmail.com CC: r-help@r-project.org Subject: Re: [R] [r] overlap different line in a xyplot (lattice) On 2010-12-10 07:04, Francesco Nutini wrote: dear [R] users, is there a way to plot different data (but with the same x-variables) in the same xyplot window? There are already

Re: [R] overlap different line in a xyplot (lattice)

2010-12-11 Thread Felix Andrews
different line in a xyplot (lattice)     On 2010-12-10 07:04, Francesco Nutini wrote:     dear [R] users,   is there a way to plot different data (but with the same x-variables) in the same xyplot window?   There are already a similar question, but the answer is not enought explanatory

Re: [R] overlap different line in a xyplot (lattice)

2010-12-11 Thread Peter Ehlers
On 2010-12-11 16:47, Felix Andrews wrote: On 12 December 2010 00:08, Peter Ehlersehl...@ucalgary.ca wrote: [...snip...] The idea is the same: you need to get your data into long format with a grouping variable and then use the 'groups' argument to xyplot. Here's fake data frame (you should

[R] [r] overlap different line in a xyplot (lattice)

2010-12-10 Thread Francesco Nutini
dear [R] users, is there a way to plot different data (but with the same x-variables) in the same xyplot window? There are already a similar question, but the answer is not enought explanatory... Thanks a lot, Francesco [[alternative HTML

Re: [R] [r] overlap different line in a xyplot (lattice)

2010-12-10 Thread Peter Ehlers
On 2010-12-10 07:04, Francesco Nutini wrote: dear [R] users, is there a way to plot different data (but with the same x-variables) in the same xyplot window? There are already a similar question, but the answer is not enought explanatory... Something like this? x - rep(1:10, 2) y1 -

Re: [R] [r] overlap different line in a xyplot (lattice)

2010-12-10 Thread Ben Bolker
Peter Ehlers ehlers at ucalgary.ca writes: On 2010-12-10 07:04, Francesco Nutini wrote: dear [R] users, is there a way to plot different data (but with the same x-variables) in the same xyplot window? There are already a similar question, but the answer is not enought