[R] returning plot tick marks

Marc Schwartz MSchwartz at medanalytics.com
Thu Dec 11 23:33:34 CET 2003


On Thu, 2003-12-11 at 15:44, DCF wrote:
> Is there an easy way to return the values of the axis tick marks
> resulting from plot.default? For example, plot(1:1000) would return 0,
> 200, 400, 600, 800, 1000 from the x axis.
>  
> Thanks,
>  
> Max


See ?axTicks

Example:

> plot(1:1000)

# X axis
> axTicks(1)
[1]    0  200  400  600  800 1000

# Y axis
> axTicks(2)
[1]    0  200  400  600  800 1000


HTH,

Marc Schwartz




More information about the R-help mailing list