[R] Alignment of axes intersection
Duncan Murdoch
murdoch at stats.uwo.ca
Tue May 20 18:37:56 CEST 2008
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.
More information about the R-help
mailing list