Skip to content
Prev 255739 / 398506 Next

lattice: how to "center" a subtitle?

On Apr 4, 2011, at 7:39 AM, Marius Hofert wrote:

            
library(lattice)
trellis.device("pdf")
print(xyplot(0 ~ 0, xlab.top = "This title is now 'centered' for the  
human's eye", xlab = "but subtitles are _now_ centered", scales =  
list(alternating = c(1,1), tck = c(1,0))))
dev.off()


(I realize that those are not really subtitles by a 'lab', but that  
appears acceptable in your current test case.)
David Winsemius, MD
West Hartford, CT