Christos Argyropoulos
2009-Feb-21 16:22 UTC
[R] Bold fonts and greek characters in lattice plots
Hi, I am trying to "convince" lattice to use bold face in an expression containing Greek characters without any luck. Example code (without Greek characters, renders the expression in bold) library(lattice) data(Cars93,package=="MASS") splom(~Cars93[,5:8]|Origin,data=Cars93,panel=function(x,y,...) { panel.splom(x,y,...) dum<-format(cor(x,y,use="complete",method="kendal"),dig=2) panel.text(30,40,bquote(.(dum)),font=2) },pscales=0,col="gray" ) Example code (with Greek characters, no bold) data(Cars93,package=="MASS") splom(~Cars93[,5:8]|Origin,data=Cars93,panel=function(x,y,...) { panel.splom(x,y,...) dum<-format(cor(x,y,use="complete",method="kendal"),dig=2) panel.text(30,40,bquote(tau == .(dum)),font=2) },pscales=0,col="gray" ) Any suggestions? Christos Argyropoulos _________________________________________________________________ s. It's easy! aspx&mkt=en-us