Skip to content
Prev 268082 / 398502 Next

how to display Greek characters in lattice plot (in the labels inside the panels)

On Aug 9, 2011, at 9:29 AM, Ranjan Maitra wrote:

            
Use scales with expression vector and rot=90 ... assuming the  
ambiguous phrase "text on its side" means rotated 90 degrees:

bwplot(Error~Method | sigma, data = z[z[,"Method"] != "gof-q",],
        scales=list( x =list(
           labels = expression(BIC, ICL, Q_v, hat(sigma)*"_v"),
            rot = 90 )       ),
        horiz = F, xlab = "Method", ylab = "Relative Absolute Error",
        strip = function(which.given, which.panel, var.name,
                         strip.levels = FALSE,
                         strip.names = TRUE, ...) {
        	 strip.default(which.given, which.panel,
        	               var.name = sigmaExpr[which.panel],
                        strip.levels = FALSE,
                        strip.names = TRUE, ...)
        },
        layout = c(5,1),  col = "red")
David Winsemius, MD
West Hartford, CT