Re: [R] Alignment of axes intersection

From: David Afshartous <dafshartous_at_med.miami.edu>
Date: Tue, 20 May 2008 12:36:48 -0400

Agreed. The main reason I wanted the change in alignment was that I had three curves that were converging to a asymptote, and when I drew the horizontal asymptote via abline(), it distorted the picture somewhat since the line from abline() goes all the way to the y-axis.

On 5/20/08 12:21 PM, "Greg Snow" <Greg.Snow_at_imail.org> wrote:

> 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 - 17:14:55 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 - 20:32:11 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