I am trying to create a graph with xyplot lattice with the following code:
set.seed(123) #### make it reproducible df<-data.frame(x=runif(100,1,1e7),y=runif(100,0.01,.08),t=as.factor(sample(1:3,100,replace=T))) png("xyplot_grid_misaligned.png",800,800) p<-xyplot(y ~ x,groups=t,data=df,scales=list(x=list(log=10,equispaced.log=F)),auto.key=T,ylim=c(-.01,.1),grid=T) print(p) dev.off()
It produces, as expected, a beautiful plot: 
I want the grid on the chart to be aligned with the marks generated by equispaced.log=F The xyplot documentation only discusses grid with respect to several graphs, as well as some other flows in SO and other sites (in fact, I got the argument grid=T from another site: Using the graphic grid in R , and even there you can see that when using equispaced.log=F grid "shifts" with ticks).
Just in case, someone might think that this is a duplicate of SO: aligning-grid-lines-to-axis-ticks-in-lattice-graphics , please note that the question is how to align the grids in the multiset (and even time thread has not yet answered).
How can I use xyplot "align" grid lines to x ticks when using equispaced.log=F ? Thanks!