[R] lattice graph with segments (erroneously posted earlier)

2004-12-04 Thread Ruud H. Koning
Hello, I have a dataset with three numerical variables, and two factor variables, one of which is shown: deel1[,1:4] median ucl lcl coupon.period 1 10.894672NA 14.255623 fixed0-1 5 12.536729 11.658164 13.341038 fixed1-5 9 10.616561 9.979676 11.039264

Re: [R] Lattice graph with segments

2004-12-04 Thread Tim Churches
Andrew Robinson wrote: Ruud, try something like the following (not debugged, no coffee yet): xyplot(coupon.period ~ median, data=prepayment, subscripts=T, panel=function(x,y,subscripts,...){ panel.xyplot(x,y) panel.segments(deel1$lcl[subscripts], deel$ucl[subscripts]) } ) Andrew

Re: [R] Lattice graph with segments

2004-12-04 Thread Deepayan Sarkar
On Saturday 04 December 2004 14:40, Tim Churches wrote: Andrew Robinson wrote: Ruud, try something like the following (not debugged, no coffee yet): xyplot(coupon.period ~ median, data=prepayment, subscripts=T, panel=function(x,y,subscripts,...){ panel.xyplot(x,y)