[R] Bold fonts and greek characters in lattice plots

Christos Argyropoulos argchris at hotmail.com
Sat Feb 21 17:22:03 CET 2009


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



More information about the R-help mailing list