[R] Help plotting image to window without margin

Kingsford Jones kingsfordjones at gmail.com
Thu Apr 9 06:08:53 CEST 2009


See 'mar' under ?par

e.g.,

x <- y <-  -100:100
z <- outer(x, y, function(x,y) sqrt(x^2 + y^2))
par(mar=c(0,0,0,0))
image(x,y,z)

hth,

Kingsford Jones


On Wed, Apr 8, 2009 at 9:07 PM, Bob Meglen <bmeglen at comcast.net> wrote:
> I am using several scripts that employ various packages to process images generated from multispectral data sets.
> I have used rimage and other packages to try to "plot" or "image" to place images in a window. I have not been able to find a way to suppress the margins that surround the image in the window. I would like to be able to have the image fill the window without any white-space .
>
> I would appreciate some suggestions about how this can be done.
>
> Thanks,
> Bob Meglen
> Boulder, CO
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>




More information about the R-help mailing list