Re: [R] get plot axis rounding method

2012-04-27 Thread Sarah Goslee
The help for axis() talks about it some, and provides the suggestion to see ?pretty - since you're not looking for a regular sequence of numbers, you may need to dig into the code itself. Or something in ?axis may offer the clue you need. But surely it's more appropriate to use the correct number

Re: [R] get plot axis rounding method

2012-04-27 Thread Duncan Murdoch
On 27/04/2012 10:55 AM, Ben quant wrote: Hello, Does anyone know how to get the rounding method used for the axis tick numbers/values in plot()? I'm using mtext() to plot the values used to plot vertical and horizontal lines (using abline()) and I'd like these vertical and horizontal line value

[R] get plot axis rounding method

2012-04-27 Thread Ben quant
Hello, Does anyone know how to get the rounding method used for the axis tick numbers/values in plot()? I'm using mtext() to plot the values used to plot vertical and horizontal lines (using abline()) and I'd like these vertical and horizontal line values to be rounded like the axis tick values a