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

From: Guazzetti Stefano <Stefano.Guazzetti_at_ausl.re.it>
Date: Fri 10 Feb 2006 - 19:41:28 EST


perhaps you are looking at something like

plot(0, xlim=c(0,20), xaxt="n")
axis(1, at=pretty(0:20, 10))

Stefano
-----Messaggio originale-----
Da: r-help-bounces@stat.math.ethz.ch
[mailto:r-help-bounces@stat.math.ethz.ch]Per conto di Subhabrata Inviato: venerd́ 10 febbraio 2006 7.05
A: r-help
Cc: mansur@sraindia.com
Oggetto: [R] Fw: Controling the x or y limit

 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

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 20:03:20 2006

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