Re: [R] Adding lines to complex xyplot

2014-02-25 Thread Duncan Mackay
Hi Once you want to do extra things from the basic you may have to go into the panel function xyplot(Observation,IPrediction, groups=TreatmentArm, col = c(1,2,3), cex=0.7, panel = function(x,y,...){ panel.xyplot(x,y,...

Re: [R] Adding lines to complex xyplot

2014-02-25 Thread Robert Latest
Hello Lib, I think what you're trying to do is very easy using ggplot2 -- easy, that is, once you got your hear around ggplot2 in the first place. The layering you mention is the core feature of ggplot2. Fortunately it is well-documented including a thin, overpriced book from Springer (which I hav