[R] Help with Lattice

Deepayan Sarkar deepayansarkar at yahoo.com
Tue Aug 20 22:02:18 CEST 2002


--- 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list