[R] tick marks in opposite axis xyplot

Deepayan Sarkar deepayan at stat.wisc.edu
Wed Jun 1 20:57:43 CEST 2005


On Wednesday 01 June 2005 13:04, Sebastian Luque wrote:
> Hello,
>
> I cannot find how to avoid drawing tick marks on the opposite side of axes
> in xyplot (lattice package). Say you have a simple plot:
>
> x <- y <- rnorm(10)
> xyplot(y ~ x)
>
> There are tick marks on the top and right axes. Is it possible to turn off
> drawing of those tick marks, or even turn off drawing of those axes
> completely? Thanks in advance.

xyplot(y ~ x, scales = list(tck = c(1, 0)))

Deepayan




More information about the R-help mailing list