RE: [R] plot axis appearance problem

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Sat 02 Apr 2005 - 04:58:14 EST


> From: Yogesh K. Tiwari
>
> 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=N
> A,type="p",col=5) ^^^^^^^^^^^^^^^^^

R can only do what you _ask_ it to do, not what you want it to do. You have explicitly tell R to limit the range of the x-axis to 1993 and 2003. If you want to include the origin (0, 0), use 0 as the lower limit in both ylim and xlim.

Andy  

> 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.
>
> Thanks for help,
>
> Regards,
> Yogesh
>
>
> --
>
> ===========================================
> Yogesh K. Tiwari,
> Max-Planck Institute for Biogeochemistry,
> Beutenberg Campus, Hans-Knoell-Strasse 10,
> D-07745 Jena,
> Germany
>
> Office : 0049 3641 576 376
> Home : 0049 3641 223 163
> Fax : 0049 3641 577 300
> Cell : 0049 1520 4591 008
> e-mail : yogesh.tiwari@bgc-jena.mpg.de
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Apr 02 06:48:58 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:00 EST