[R] lattice: How to increase space between ticks and labels of z-axis?

Marius Hofert m_hofert at web.de
Thu Mar 3 22:35:28 CET 2011


Dear expeRts,

How can I increase the space between the ticks and the labels in the wireframe plot
below? I tried some variations with par.settings=list(..) but it just didn't work.

Many thanks,

Marius



library(lattice)

u <- seq(0, 1, length.out=20)
grid <- expand.grid(x=u, y=u)
z <- apply(grid, 1, function(x) 1/(x[1]*x[2]+0.0001))

wireframe(z~grid[,1]*grid[,2], aspect=1, scales=list(col=1, arrows=FALSE))


More information about the R-help mailing list