[R] write in rimage package

2008-03-06 Thread Alberto Monteiro
Is there any way to write an imagematrix generated by the rimage package? Reproducible example: library(rimage) x - read.jpeg(system.file(data, cat.jpg, package=rimage)) png(newcat.png) plot(x) dev.off() The newcat.png image is different from the original file, because there are ugly white

Re: [R] write in rimage package

2008-03-06 Thread Henrique Dallazuanna
Perhaps: png(newcat.png) par(mar=rep(0, 4)) plot(x) dev.off() On 06/03/2008, Alberto Monteiro [EMAIL PROTECTED] wrote: Is there any way to write an imagematrix generated by the rimage package? Reproducible example: library(rimage) x - read.jpeg(system.file(data, cat.jpg,