Re: [R] Creating mixed line and point graphs with xyplot

2009-09-07 Thread John Kane
OOPS Skitts' law ( assuming I'm spelling it correctly. --- On Sun, 9/6/09, David Winsemius dwinsem...@comcast.net wrote: From: David Winsemius dwinsem...@comcast.net Subject: Re: [R] Creating mixed line and point graphs with xyplot To: John Kane jrkrid...@yahoo.ca Cc: Paul Sweeting m

Re: [R] Creating mixed line and point graphs with xyplot

2009-09-06 Thread John Kane
I think you have a couple of typos. Should it not be par(new=True) points(x,b) --- On Sat, 9/5/09, jim holtman jholt...@gmail.com wrote: From: jim holtman jholt...@gmail.com Subject: Re: [R] Creating mixed line and point graphs with xyplot To: Paul Sweeting m...@paulsweeting.co.uk Cc: r

Re: [R] Creating mixed line and point graphs with xyplot

2009-09-06 Thread David Winsemius
On Sep 6, 2009, at 3:03 PM, John Kane wrote: I think you have a couple of typos. Should it not be par(new=True) points(x,b) Probably not True --- On Sat, 9/5/09, jim holtman jholt...@gmail.com wrote: From: jim holtman jholt...@gmail.com Subject: Re: [R] Creating mixed line and point

Re: [R] Creating mixed line and point graphs with xyplot

2009-09-05 Thread jim holtman
I would use the base plot routine plot(x,c, type='l', ylim=range(a,c)) points(x,a) park(new=TRUE) plot(x,d,type='l', ylim=range(b,d), axes=FALSE,ylab='', xlab='') pints(x,b) axis(4) On Fri, Sep 4, 2009 at 11:28 AM, Paul Sweetingm...@paulsweeting.co.uk wrote: Hi Well, I think the title says it

[R] Creating mixed line and point graphs with xyplot

2009-09-04 Thread Paul Sweeting
Hi Well, I think the title says it all!  I've looked through the documentation but I can't find a way of doing this.  The situation is that I have 4 series, say a, b, c and d.  Series a and c are plotted on the lh y axis, series b and d are plotted on the rh (secondary) y axis.  I've worked

Re: [R] Creating mixed line and point graphs with xyplot

2009-09-04 Thread Dylan Beaudette
Here is an example: http://casoilresource.lawr.ucdavis.edu/drupal/node/510 make.groups() is your friend. Cheers, Dylan On Fri, Sep 4, 2009 at 8:28 AM, Paul Sweetingm...@paulsweeting.co.uk wrote: Hi Well, I think the title says it all!  I've looked through the documentation but I can't

Re: [R] Creating mixed line and point graphs with xyplot

2009-09-04 Thread Gabor Grothendieck
If you represent your series as zoo series then you can do this: library(zoo) z - zoo(cbind(a = 1:3, b = 4:6, c = 3:1, d = 6:4)) xyplot(z, screen = 1, type = c(p, p, l, l)) See the three vignettes that come with zoo and also see ?xyplot.zoo If you omit screen = 1 then the 4 will be on separate

Re: [R] Creating mixed line and point graphs with xyplot

2009-09-04 Thread Deepayan Sarkar
On Fri, Sep 4, 2009 at 8:28 AM, Paul Sweetingm...@paulsweeting.co.uk wrote: Hi Well, I think the title says it all!  I've looked through the documentation but I can't find a way of doing this.  The situation is that I have 4 series, say a, b, c and d.  Series a and c are plotted on the lh y