[R] xyplot: Plotting two variables, one as points - the other as line. Can that be done without explicitly using panel functions

2006-11-01 Thread Søren Højsgaard
Hi! Consider d - data.frame(x=1:10,y=5+1:10, yf=rnorm(10,5+1:10)) x yyf 1 1 6 5.268621 2 2 7 8.623896 3 3 8 8.114830 4 4 9 10.125955 5 5 10 9.977261 ... I plot y and yf against x with xyplot(y+yf~x,data=d,col=c('red','green'),pch=c(a,b)) BUT - I would like

Re: [R] xyplot: Plotting two variables, one as points - the other as line. Can that be done without explicitly using panel functions

2006-11-01 Thread Gabor Grothendieck
If the x values are unique, as in this example, then xyplot.zoo can do it without a panel function (or perhaps more accurately the default panel function in xyplot.zoo can do it). Note that a zoo object is a vector or matrix with a time index attached to it. You don't really have to be familiar

Re: [R] xyplot: Plotting two variables, one as points - the other as line. Can that be done without explicitly using panel functions

2006-11-01 Thread Deepayan Sarkar
On 11/1/06, Søren Højsgaard [EMAIL PROTECTED] wrote: Hi! Consider d - data.frame(x=1:10,y=5+1:10, yf=rnorm(10,5+1:10)) x yyf 1 1 6 5.268621 2 2 7 8.623896 3 3 8 8.114830 4 4 9 10.125955 5 5 10 9.977261 ... I plot y and yf against x with