Skip to content
Prev 242532 / 398500 Next

xlim=c(min(x), max(x)) still produces extra margin on both sides of x axis in plot()

Hi!

After plotting, take a look at par()$usr; it gives you the coordinates 
of the plotting region.
You could use it that way:
abline(v=c(par()$usr[1], par()$usr[2])...)

Note that you can also use it like this: par("usr")[1]

HTH,
Ivan

Le 11/22/2010 11:04, madr a ?crit :