Hi: I have started to use Lattice two days ago and find that it is an outstanding package. I am, however, stumbling on two problems, despite the fact that I have read the help pages as well as two pdf documents on Trellis that I found on the web. 1- I want to remove the ticks on the top and right sides of the panels and did not see any option in "scales" to do so. 2- I would like to remove the background color on the strips but could not find how to make the "bg" option in "strip.default " work. I would also like to remove the box around the strips and found no option to do it in "strip.default" or elsewhere. Thanks in advance for your help. jp -- ____________________________________________________________________ Jean-Pierre Gattuso Laboratoire d'Oc?anographie de Villefranche, UMR 7093 CNRS-UPMC B. P. 28, F-06234 Villefranche-sur-mer Cedex - France Voice: +33 (0)493763859 - Fax: +33 (0)493763834 <mailto:gattuso at obs-vlfr.fr> - http://www.obs-vlfr.fr/~gattuso -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> From: Jean-Pierre Gattuso [mailto:gattuso at obs-vlfr.fr] > > Hi: > > I have started to use Lattice two days ago and find that it is an > outstanding package. I am, however, stumbling on two problems, > despite the fact that I have read the help pages as well as two pdf > documents on Trellis that I found on the web. > > 1- I want to remove the ticks on the top and right sides of the > panels and did not see any option in "scales" to do so.Use scale=list(alternating=...) inside your trellis calls.> 2- I would like to remove the background color on the strips but > could not find how to make the "bg" option in "strip.default " work. > I would also like to remove the box around the strips and found no > option to do it in "strip.default" or elsewhere.Here's how I set the strips and shingles to all white: trls.strp.bg <- trellis.par.get('strip.background') trls.strp.sg <- trellis.par.get('strip.shingle') trls.strp.bg$col <- rep(0, 7) trls.strp.sg$col <- rep(0, 7) trellis.par.set('strip.background',trls.strp.bg) trellis.par.set('strip.shingle',trls.strp.sg) Not sure what you mean by `box around the strip'. HTH, Andy> > Thanks in advance for your help. > jp > -- > ____________________________________________________________________ > Jean-Pierre Gattuso > Laboratoire d'Oc?anographie de Villefranche, UMR 7093 CNRS-UPMC > B. P. 28, F-06234 Villefranche-sur-mer Cedex - France > Voice: +33 (0)493763859 - Fax: +33 (0)493763834 > <mailto:gattuso at obs-vlfr.fr> - http://www.obs-vlfr.fr/~gattuso------------------------------------------------------------------------------ Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it. ============================================================================= -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
--- Jean-Pierre Gattuso <gattuso at obs-vlfr.fr> wrote:> Hi: > > I have started to use Lattice two days ago and find that it is an > outstanding package. I am, however, stumbling on two problems, > despite the fact that I have read the help pages as well as two pdf > documents on Trellis that I found on the web.Unfortunately, none of the things you want can be done (at least not very easily) right now.> 1- I want to remove the ticks on the top and right sides of the > panels and did not see any option in "scales" to do so.You can try these, but neither are probably exactly what you want: i ) xyplot(..., scales = list(alternating = 1, tck = 0)) ii) xyplot(..., scales = list(relation = "free"))> 2- I would like to remove the background color on the strips but > could not find how to make the "bg" option in "strip.default " work. > I would also like to remove the box around the strips and found no > option to do it in "strip.default" or elsewhere.The background is easy to change, by lset(list(strip.background = list(col = "transparent"))) (note: this is overridden every time you start a new device) or xyplot(..., strip = function(bg, ...) strip.default(bg = 'transparent', ...)) The box can't really be removed (even if the strip function doesn't draw a box, each panel draws a box around itself, as does the whole plotting region). Deepayan __________________________________________________ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._