[R] Tick marks in xyplot

Ingolfsson, Olafur olafur.ingolfsson at imr.no
Wed Jun 23 13:36:43 CEST 2004


Dear R group

I am making multiple xyplot, and would like to have tick marks on bottom and left in EACH panel, but only tick labels at the bottom and left of the whole graph.
I have browsed the internet, as well as the help page without success.
If anyone could help me find the path to the solution I would appreciate.
Here is an example, this is the best I could do:

lset(col.whitebg())
x.data <- rnorm(16,20,7);y.data <- rnorm(16,.55,.25); z.data <- sample(1:4,16,replace=T)
xyplot(y.data~x.data|z.data, layout=c(2,2),
       scales=list(x=list(alternating=F),y=list(alternating=F),tck=c(-1,0)))

Cheers

Ólafur A. Ingólfsson
Institute of Marine Research
PO Box 1870 Nordnes
5817 Bergen, Norway




More information about the R-help mailing list