[R] Start plot really at baselines x=0, y=0

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Nov 1 09:03:36 CET 2007


See ?par, look for 'xaxs'

On Thu, 1 Nov 2007, marcg wrote:

> Dear R
>
> Plots without par arguments do start not at zero (means, the box around 
> is somwhere outside the specified plotrange). How to start really from 
> zero, pe. basline y=0?
>
> every standart par works like this:

Not so: xaxs="i" is a 'standard par'.

> x<-seq(1,10,0.1)
> y<-sin(x)
>
> plot(sin(x))
>
> Thanks for help
>
> Marc
>

-- 
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