[R] plot axis appearance problem

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Apr 1 20:41:01 CEST 2005


?par look at xaxs.

Or just read `An Introduction to R' more carefully!

On Fri, 1 Apr 2005, Yogesh K. Tiwari wrote:

> Hello,
>
> When I plot any data with simple plot command in R, for example :-
>
> plot(time,co2,ylim=c(350,380),xlim=c(1993,2003),xlab=NA,ylab=NA,type="p",col=5)
>
> Then the first value of x-axis(350) and y-axis(1993) never starts from 
> origin, always they sifted from the origin. Is there any command that I can 
> correct this in the ploted figure and both the axis values start from origin.

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