Hi list, there always seem to be a small margin between the actual plot and the axes/box around the plot. For instance, in plot(c(0,1),c(0,1)) the 2 points do not lay on the box around the plot but slightly more to the center. Which parameter controls this margin and is it possible to eliminate it? thanks, Wouter
See ?par: par(xaxs = "i", yaxs = "i") plot(0:1, 0:1) Uwe Ligges wouter.buytaert at scarlet.be wrote:> Hi list, > > there always seem to be a small margin between the actual plot and the > axes/box around the plot. For instance, in > > plot(c(0,1),c(0,1)) > > the 2 points do not lay on the box around the plot but slightly more to > the center. Which parameter controls this margin and is it possible to > eliminate it? > > thanks, > > Wouter > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
wouter.buytaert at scarlet.be wrote:> Hi list, > > there always seem to be a small margin between the actual plot and the > axes/box around the plot. For instance, in > > plot(c(0,1),c(0,1)) > > the 2 points do not lay on the box around the plot but slightly more to > the center. Which parameter controls this margin and is it possible to > eliminate it? >See help(par), xaxs/yaxs