Re: [R] L-shaped boxes with lattice graphs?

2010-11-16 Thread Felix Andrews
Here is a better approach that will keep the axis ticks as well on the two axes. ## define a lattice axis function axis.L - function(side, ..., line.col) { if (side %in% c(bottom, left)) { col - trellis.par.get(axis.text)$col axis.default(side, ..., line.col = col)

[R] L-shaped boxes with lattice graphs?

2010-11-14 Thread John Maindonald
Can anyone suggest an equivalent, for lattice graphs, of the base graphics argument bty=l? NB that I am leaving off the box around the strip, with a strip function: stripfun - function(which.given,which.panel, factor.levels=as.expression(levlist), ...){

Re: [R] L-shaped boxes with lattice graphs?

2010-11-14 Thread Felix Andrews
Hi John, Here is an example with plot borders on the left and bottom only. ## hide the usual panel and strip borders by using transparent NA sty - list() sty$axis.line$col - NA sty$strip.border$col - NA sty$strip.background$col - NA xyplot(11:14 ~ 1:4 | rep(c(A, B), 2),