[R] How to insert a bitmap in a grph device

Thomas Petzoldt thpe at hhbio.wasser.tu-dresden.de
Fri May 28 18:34:51 CEST 2004


Dirk Eddelbuettel wrote:

  > IIRC the pixmap package on CRAN helps with that.

Ah, I see, ?addlogo is much easier than grid in this case, as one sees 
in a (slightly modified) version of the help example:

x <- read.pnm(system.file("pictures/logo.ppm", package="pixmap")[1])
plot(sample(1:100))
for (i in 1:7)
   addlogo(x, px=c(0, (101/77)*11), py=c((i-1)*11, i*11), asp=1)


Thank you

Thomas P.




More information about the R-help mailing list