[R] Alignment of axes intersection
Charilaos Skiadas
cskiadas at gmail.com
Tue May 20 18:08:32 CEST 2008
On May 20, 2008, at 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.
This is on purpose, so that data points are not obscured by the axes.
The axis range is always selected as a bit bigger than the value range.
Perhaps this does what you want:
plot(0:10, 0:10, xaxs="i", yaxs="i")
If it doesn't then we probably need more info.
> How does one force this?
>
> I searched for graphical parameters under par(graphics) but can't
> seem to
> find it.
>
> Thanks!
> David
Haris Skiadas
Department of Mathematics and Computer Science
Hanover College
More information about the R-help
mailing list