Re: [R] Fw: Controling the x or y limit

From: Dimitris Rizopoulos <dimitris.rizopoulos_at_med.kuleuven.be>
Date: Fri 10 Feb 2006 - 19:22:40 EST

try the following:

plot(0:20, axes = FALSE)
axis(2)
axis(1, at = seq(0, 20, 2), labels = seq(0, 20, 2))


I hope it helps.

Best,
Dimitris



Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium

Tel: +32/(0)16/336899
Fax: +32/(0)16/337015
Web: http://www.med.kuleuven.be/biostat/
     http://www.student.kuleuven.be/~m0390867/dimitris.htm


> Hello - R-experts,
>
> This may sound simple to many ---
> We can specify the x limit by saying xlim = c(0, 20) for example.
> Then the graph will show the range of x -axis between 0 - 20.
> But the coordinate gap will be automatic like 0 then 5 then 15 and
> 20.
> Is there any way by which we can set it in a gap of 2 or any number.
>
> Thank you for any help.
>
> With Regards
>
> Subhabrata
>
> ______________________________________________
> R-help@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
>

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm



R-help@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 Received on Fri Feb 10 19:44:46 2006

This archive was generated by hypermail 2.1.8 : Mon 13 Feb 2006 - 22:28:26 EST