[R] Controling the x or y limit

Roger Bivand Roger.Bivand at nhh.no
Fri Feb 10 10:32:03 CET 2006


On Fri, 10 Feb 2006, Subhabrata wrote:

> 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.
> 

Use plot() with axes=FALSE, box() to put your box round, and axis() to 
manipulate the axis placings - see:

?axis

> 
> Thank you for any help.
> 
> With Regards
> 
> Subhabrata
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> 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
> 

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no




More information about the R-help mailing list