[R] lattice::xyplot axis padding with fontfamily="mono"

Benjamin Tyner btyner at gmail.com
Thu May 28 01:38:12 CEST 2009


Hello,

Say I have a predictor taking a very wide value:

   Data <- 
data.frame(pred="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",resp=1)

   print(xyplot(pred~resp, data=Data)) # enough y-axis padding to 
accommodate the wide label

   print(xyplot(pred~resp, data=Data,scales=list(fontfamily="mono"))) # 
not enough padding

What's the recommended way to have enough padding allocated?

Thank you
Ben


More information about the R-help mailing list