[R] write in rimage package

Henrique Dallazuanna wwwhsd at gmail.com
Thu Mar 6 12:31:41 CET 2008


Perhaps:

png("newcat.png")
par(mar=rep(0, 4))
plot(x)
dev.off()


On 06/03/2008, Alberto Monteiro <albmont at centroin.com.br> 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", package="rimage"))
>  png("newcat.png")
>  plot(x)
>  dev.off()
>
>  The newcat.png image is different from the original file, because
>  there are ugly white borders around it.
>
>  Alberto Monteiro
>
>  ______________________________________________
>  R-help at r-project.org mailing list
>  https://stat.ethz.ch/mailman/listinfo/r-help
>  PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>  and provide commented, minimal, self-contained, reproducible code.
>


-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O



More information about the R-help mailing list