Re: [R] how can xyplot word when with for control flow

2012-10-31 Thread yzh lin
Hi Heiberger, Thanks for your response. Tolfer had told me the answer, just use print () in the xyplot, and it works. Anyway thanks again. Best regards Yuanzhen Lin my data is shown as follow: > dump("tmp", "") tmp <- structure(list(x = c(1L, 2L, 3L, 4L, 5L, 1L, 2L, 3L, 4L, 5L, 1L, 2L, 3L, 4L,

Re: [R] how can xyplot word when with for control flow

2012-10-31 Thread Richard M. Heiberger
I made up some data since you didn't send your example. tmp <- data.frame(x=rep(1:10, 3), y=rnorm(30), Fam=rep(c("a","b","c"), each=10), Spacing=rep(c("A","B"), each=5, times=3)) xyplot(y ~ x | Fam, groups=Spacing, data=tmp, layout=c(3,1), aut

Re: [R] how can xyplot word when with for control flow

2012-10-31 Thread Rolf Turner
See FAQ 7.22. cheers, Rolf Turner On 01/11/12 12:09, yzh lin wrote: Hi everybody, I recently used xyplot, but I found that for control flow can't work in the xyplot. The program code and some of my data file are shown as follow. Would someone please tell me where my code is wrong