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 --------------------------------- [[alternative HTML version deleted]]
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, > > MaxSee ?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
Is this what you want: pretty(1:1000) [1] 0 200 400 600 800 1000 hope this helps. spencer graves 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 > > > >--------------------------------- > > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://www.stat.math.ethz.ch/mailman/listinfo/r-help > >