Re: [R] Alignment of axes intersection

From: Greg Snow <Greg.Snow_at_imail.org>
Date: Tue, 20 May 2008 10:21:11 -0600

Mathematicians like to have axes cross at 0, the general rule for statistics is to have the axes positioned so that they help you understand the data, but don't interfere with the actual points (or force too much whitespace by being put to far away from the data), so the default positioning follows that idea. If you really want the axes to cross at 0 you can do:

> plot(0:10, 0:10, axes=FALSE)
> axis(1, pos=0)
> axis(2, pos=0)

--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow_at_imail.org
(801) 408-8111




> -----Original Message-----
> From: r-help-bounces_at_r-project.org
> [mailto:r-help-bounces_at_r-project.org] On Behalf Of David Afshartous
> Sent: Tuesday, May 20, 2008 9:50 AM
> To: r-help_at_r-project.org
> Subject: [R] Alignment of axes intersection
>
>
> All,
>
> Very basic question I can't seem to find the answer to:
>
> plot(0:10, 0:10)
>
> The axes intersection is not aligned at (0,0) in the lower left.
> How does one force this?

>
> I searched for graphical parameters under par(graphics) but
> can't seem to find it.
>
> Thanks!
> David
>
> ______________________________________________
> R-help_at_r-project.org mailing list
>
https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
______________________________________________ R-help_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Received on Tue 20 May 2008 - 16:43:43 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 20 May 2008 - 17:30:42 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive