Re: [R] Alignment of axes intersection

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Tue, 20 May 2008 12:37:56 -0400

On 5/20/2008 11:49 AM, David Afshartous wrote:
> 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?

See the xaxs and yaxs parameters in help("par"), for example

plot(0:10, 0:10, xaxs="i", yaxs="i")

does what you ask. It's also clear from that plot why this is not the default: two of the points are nearly invisible.

Duncan Murdoch

>
> 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:55:33 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