Skip to content
Prev 257297 / 398506 Next

splom, plotmath: how to add three lines of information with alignment?

Hi,

Does this help?

library(gridExtra)

my.title = function(expressions) {
  grid.table(expressions, parse=TRUE,
             theme=theme.list(gpar.corefill = gpar(fill = NA, col = NA),
               core.just = "left"))
}

e = expression(alpha,"text", italic(italic),
    hat(beta), integral(f(x)*dx, a, b))

library(lattice)

xyplot(1~1, panel=function(...) my.title(e) )

HTH,

baptiste
On 19 April 2011 08:43, Marius Hofert <m_hofert at web.de> wrote: