[R] Adjust lattice graph axis label on final page

Sebastien Bihorel Sebastien.Bihorel at cognigencorp.com
Wed Feb 24 23:15:20 CET 2010


Dear R-users,

I was wondering if there was a way to adjust the placement of the axis 
titles for the last page of a multi-page lattice plot (see example 
below). Depending on the total number of panels, the placement of these 
titles might look strange on the last page, if the layout is not 
adjusted (e.g. in some template code).

Any thought on this issue would be welcome.

Sebastien

library(lattice)

mydata <- data.frame(x=rep(1:10,8),
                     y=rep(1:10,8),
                     id=rep(1:8,each=10))
                    
xyplot(y~x|id,as.table=T,data=mydata,layout=c(2,3))



More information about the R-help mailing list