Skip to content
Prev 352652 / 398498 Next

change font size within the panel.text function (package lattice)

On Jul 11, 2015, at 4:46 PM, Luigi Marongiu wrote:

            
library(lattice)
  A <- data.frame(x = rnorm(100), y = rnorm(100))
  xyplot(y ~ x, data = A,
  panel= function(x,y,...){panel.points(x,y,...)
                           panel.text(0.5, 0.2, "Hello, world", cex=3)}
        )
David Winsemius
Alameda, CA, USA