I would like to add a title to my legend for this plot:
library(lattice)
x = 1:10
y = rep(x,rep(10,10))
x = rep(x,rep(10))
z = x+y
levelplot(z~x*y,
colorkey = list(labels = list(cex=1,font=2,col="brown"), height=1, width=1.4),
main = list('b',side=1,line=0.5))
Which produces: