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

Guazzetti Stefano Stefano.Guazzetti at ausl.re.it
Fri Feb 10 09:41:28 CET 2006


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 at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch]Per conto di Subhabrata
Inviato: venerdì 10 febbraio 2006 7.05
A: r-help
Cc: mansur at 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 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