[R] Lattice: distance of tick labels from axis line

Peter Ehlers ehlers at ucalgary.ca
Mon Jul 25 18:03:53 CEST 2011

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,

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 at 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.

More information about the R-help mailing list