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

2010-11-22 Thread madr
i found solution myself: par(xaxs = i, yaxs = i) - it sets axis ranges to actual data ranges sorry for question but maybe this will be easier to find if someone would be searching for this -- View this message in context:

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

2010-11-22 Thread Ivan Calandra
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 : code: op-