Re: [R] Positioning in xyplot On 4/21/07, Michael Kubovy  wrote: > Hi Deepayan, > > There appears to be a small problem in the code you created to > reposition one panel in xyplot: it plots the panels but not the > contents. Putting together everything that you did on this problem, I > have the following: Not sure what you mean. Pasting your code gives me a nice meaningless mishmash of multicolored lines in all 5 panels. [...] > I also wonder why one doesn't need to call panel.xyplot(). One does. The panel function (copied from your code) is: panel.leftaxes <- function(...) {    if (panel.number() == 5)       panel.axis("left", outside = TRUE,                   line.col = "black")    panel.xyplot(...) } The panel.xyplot() call is not part of the if() block, so gets called for all panels. -Deepayan ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.