Re: [R] Combing xyplot and curve() plot via print

2008-11-10 Thread Afshartous, David
Thanks. I tried you suggestion and it indeed solves the problem. For the sample code below the appropriate substitute to the curve function is: xv = seq(0, 3, by = .05) yv = sin(xv) yv.new = cos(xv) p.12 = xyplot(yv + yv.new ~ xv, type="l", lty=c(1,5), col="black") On 11/10/08 2:09 PM, "Greg

Re: [R] Combing xyplot and curve() plot via print

2008-11-10 Thread Greg Snow
The xyplot function is a lattice function that uses grid graphics. The curve function is a base graphics function. 'par' and 'layout' work with base graphics, the print idea works with grid graphics. Grid graphics and base graphics don't mix easily. One option is to find a grid/lattice/ggplo