Re: [R] How to compute yaxp and usr without plotting ?

2011-02-15 Thread Yves REECHT
Thank you very much Greg, This was helpful. With yaxs=r I can easily obtain the Y-axis labels with : rg - range(y) + 0.04 * diff(range(y)) * c(-1, 1) pt - pretty(y) axTicks(side=2, usr=c(0, 1, rg), axp=c(min(pt), max(pt[pt = max(rg)]),

[R] How to compute yaxp and usr without plotting ?

2011-02-11 Thread Yves REECHT
Dear all, I'd like to know how I could compute the parameters yaxp and (the y components of) usr without having to plot the data first. Note that ylim is /a priori/ fixed. The aim is to automatically adjust the parameter mgp without having to make the plot twice. Then, with yaxp and usr

Re: [R] How to compute yaxp and usr without plotting ?

2011-02-11 Thread Greg Snow
AM To: r-help@r-project.org Subject: [R] How to compute yaxp and usr without plotting ? Dear all, I'd like to know how I could compute the parameters yaxp and (the y components of) usr without having to plot the data first. Note that ylim is /a priori/ fixed. The aim