Skip to content
Prev 205477 / 398506 Next

xyplot: adjusting the scale (min, max & tick)

Have a look at the 'scales' argument. For example:

# default plot
xyplot(Sepal.Length ~ Petal.Length | Species, data = iris)

# modified plot
xyplot(Sepal.Length ~ Petal.Length | Species, data = iris,
     scales=list(y=list(at=c(-5,0,5,10), limits=c(-5,10))))

  -Peter Ehlers
Jay wrote: