Wladimir Eremeev
2005-Jul-22 17:45 UTC
[R] Lattice: how to make x axis to appear on only one non-bottom plot?
Dear r-help, Attached is the fragment of the lattice plot, produced with xyplot function. Data were drawn for all months of a year except December. xyplot was called with parameters layout=c(3,4) scales=list(x=list(alternating=1),y=list(alternating=1)) Because of the hole in the bottom right, caused by the absence of the December, right column of plots has no x axis. Is it possible to produce it using xyplot? Thank you very much for attention and help --- Best regards, Wladimir mailto:wl at eimb.ru -------------- next part -------------- A non-text attachment was scrubbed... Name: for_Rhelp_question.png Type: image/png Size: 26591 bytes Desc: not available Url : https://stat.ethz.ch/pipermail/r-help/attachments/20050722/d6b5a7c1/for_Rhelp_question.png
Paul Murrell
2005-Jul-24 22:39 UTC
[R] Lattice: how to make x axis to appear on only one non-bottom plot?
Hi Wladimir Eremeev wrote:> Dear r-help, > > Attached is the fragment of the lattice plot, produced with xyplot > function. > Data were drawn for all months of a year except December. > xyplot was called with parameters > layout=c(3,4) > scales=list(x=list(alternating=1),y=list(alternating=1)) > > Because of the hole in the bottom right, caused by the absence of > the December, right column of plots has no x axis. > > Is it possible to produce it using xyplot?Does the following do what you want? xyplot(<whatever>) trellis.focus("panel", 4, 2, clip.off=TRUE, highlight=FALSE) panel.axis("bottom", check.overlap=TRUE, outside=TRUE) (it would be easier to help if you could provide code that others can run) Paul -- Dr Paul Murrell Department of Statistics The University of Auckland Private Bag 92019 Auckland New Zealand 64 9 3737599 x85392 paul at stat.auckland.ac.nz http://www.stat.auckland.ac.nz/~paul/