Re: [R] xyplot() conventions for multiple conditioning vars lattice pkg

2019-07-19 Thread Bert Gunter
xyplot(formula(result), result, type = c( 'g','l')) See ?formula (the part about the dataframe method) for details. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip

[R] xyplot() conventions for multiple conditioning vars lattice pkg

2019-07-19 Thread Doran, Harold
Here is a toy example of what I want library(lattice) result <- data.frame(score = 1:10, theta = seq(from = -5, to = 5, length = 10)) result$theta2 <- result$theta + .3 xyplot(score ~ theta + theta2, result, type = c('g', 'l')) However, in reality, the number of variables along the x-axis will