[R] y-axis intercept

Achim Zeileis Achim.Zeileis at wu-wien.ac.at
Fri Sep 2 12:15:03 CEST 2005


On Fri, 2 Sep 2005 11:07:40 +0100 Samuel E. Kemp wrote:

> Hi,
> 
> Is there any way to enforce the plot so that it draws the y-axis 
> intercepting the x-axis at zero.

I'm not sure what exactly you want, maybe setting ylim or yaxs or both?
For example:

plot(1:10, xlim = c(0, 10.5), ylim = c(0, 10.5), xaxs = "i", yaxs = "i")

see also ?par for more information.
Z

> Thanks in advance,
> 
> Sam.
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list