I made a doubleYScale plot:
library(lattice)
library(latticeExtra)
# Some data
foo <- list(x = 1:100, y = cumsum(rnorm(100)))
obj1 <- xyplot(y~ x, data=foo,xlab=list(cex=1.2),
main="TOtalProduktion VS SummaSkulder/TotaltKapital i procent",
type = c("l","g"),col="black",
lty=1,key = simpleKey(col=c('black'),
text=c("Produktion"),cex=1.2,points=FALSE, lines=TRUE),
scales=list(x=list(rot=90,tick.number=25,
cex=1,axs="r")))
obj2 <- xyplot(y^2 ~ x,data= foo ,type = "o",col="black",
lty=9,key = simpleKey(col=c('black'),
text=c("Summa.skulder"),cex=1.2,lines=FALSE,points= TRUE))
doubleYScale(obj1, obj2, add.ylab2 = TRUE)

The problem is that I cant manage to change the text size of the y-axic labels (y and y^2 text, I want to make it larger). It is no problem to change it if I only plot obj1 or obj2 separately, but it doesn’t work for doubleYScale…
I can on the other hand change the size of numbers on the y-axices with:
trellis.par.set(axis.text=list(cex=1))
Any suggestions? I can’t manage to find a way 🙁
If you want to set different axis sizes