On 2011-07-25 07:54, marcel wrote:
Hi, I am doing fine editing on a lattice plot, now have the Y-axis title in the correct position, but the tick labels are too far from the axis line. I looked at the help documentation but could not find how to change this. This seems to be easy to do in basic plots with "at=c(value1, value2, value3)" . Is there some equivalent in lattice? Thanks.
axis.components is a list of parameters for the 4 sides of a plot. You probably want the left side parameter 'pad1': d <- data.frame(x=1:10, y=sample(10)) xyplot(y ~ x, data=d, par.settings=list( axis.components=list( left=list(pad1=0.5)))) Peter Ehlers
-- View this message in context: http://r.789695.n4.nabble.com/Lattice-distance-of-tick-labels-from-axis-line-tp3693014p3693014.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.