Skip to content
Prev 76026 / 398502 Next

Plotting using image files

Le 23.08.2005 14:52, Mike Saunders a ??crit :
Hello Mike,

Maybe you can try using the pixmap package, something like this :

require(pixmap)
logo <- read.pnm(system.file("pictures/logo.ppm", package="pixmap")[1])
x <- rnorm(10)
y <- rnorm(10,sd=.4)+x
plot(x,y, type="n")
for(i in 1:10){       
                  u <- runif(1)/10 + .1
                  addlogo(logo, x[i]+c(-u,u), y[i]+c(-u,u), asp=1)
}
# points(x,y, pch="+")

All you have to de then is having your images in ppm format. I think 
gimp will do it for you.
There is also a few tools in netpbm (only on linux i think).


Romain