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 wrote: > From: David Winsemius > Subject: Re: [R] Creating mixed line and point graphs with xyplot > To: "John Kane" > Cc: "Paul Sweeting" , "jim holtma

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 wrote: From: jim holtman Subject: Re: [R] Creating mixed line and point graphs with xyplot

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 wrote: > From: jim holtman > Subject: Re: [R] Creating mixed line and point graphs with xyplot > To: "Paul Sweeting" > Cc: r-help@r-project.org > Receiv

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 Sweeting wrote: > Hi > > Well, I think the title says it all!  I've looked th

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 Sweeting 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 axis, series b and

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 se

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 Sweeting 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 thi