[R] Newbie Question About Setting Plot Axis Limits
Thomas Lumley
tlumley at u.washington.edu
Thu Sep 24 02:20:36 CEST 2009
On Wed, 23 Sep 2009, Jason Rupert wrote:
> Using the following: plot(c(1,1), ylim=c(0, 15), xlim=c(0, 13))
<snip>
> This is not what I expected because I would have expected the origin to be (0, 0), but on the plot it
looks a little different on the plot.
>
> The y axis also appears to extend a little beyond 15. Is there some way to have the plot command
>respect the requested ylim and xlim settings?
par(xaxs="i",yaxs="i")
plot(c(1,1), ylim=c(0, 15), xlim=c(0, 13))
-thomas
Thomas Lumley Assoc. Professor, Biostatistics
tlumley at u.washington.edu University of Washington, Seattle
More information about the R-help
mailing list