[R] Changing steps on a graphic axes

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Oct 25 18:45:37 CEST 2007


On Thu, 25 Oct 2007, Keith Jones wrote:

> I would like to tell R what increments to put the tick marks on an
> axes, e.g. xlim=seq(-5,5,1).
>
> I know that will not work.  xlim will only except the beginning and
> end of the range for the axes.

Consult the rest of ?par, especially 'xaxp' and 'lab'.  You may find it 
easier to omit the axis (see 'xaxt') and plot it yourself with axis().

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list