Re: [R] Controling the x or y limit

From: Roger Bivand <Roger.Bivand_at_nhh.no>
Date: Fri 10 Feb 2006 - 20:32:03 EST


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@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@nhh.no

______________________________________________
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:49:02 2006

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