[R] Help with Lattice
Liaw, Andy
andy_liaw at merck.com
Tue Aug 20 16:30:01 CEST 2002
> 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list