I'm trying to put text outside of a graphical legend using lattice, but it's proving a pain. It's a scatterplot that is sorted along a colour scale by another variable. The legend appears fine, but unfortunately it doesn't have a text label. I've tried Mtext, panel.text which only puts the text within the panel and everywhere I try and put label or text within the legend code doesn't seem to work.
Could anyone please help?
xyplot(calcona$Mid.depth ~ calcona$bits,
data=calcona, groups = color, col="black",
panel = function (x, y, groups, ..., subscripts)
panel.xyplot(x, y, pch=21, fill=fill, ...)
list(right= #I believe the text needs to go here somewhere.
at = caex.breaks),
xlim = range(0:7), ylab = "Depth (cm)",
xlab = "SEM (%)",
main = list( label =