[R] zero margin / marginless plots

From: David Forrest <drf5n_at_maplepark.com>
Date: Thu 11 Jan 2007 - 03:18:32 GMT


I'd like to produce a marginless or zero margin plot so that the pixel coordinates represent the mathematics.

xy<-data.frame(x=c(0,1,1,0,0),y=c(0,1,0,0,1)) png('junk.png',width=300,height=300)

The resultant file has about a 10 pixel margin around these lines, and I'm not sure what parameter or function is controlling this offset. Any hints?

Thanks for your time,

  Dr. David Forrest
  drf@vims.edu                                    (804)684-7900w
  drf5n@maplepark.com                             (804)642-0662h

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Thu Jan 11 14:26:11 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 11 Jan 2007 - 04:30:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.