[R] axis of plot

Marc Schwartz (via MN) mschwartz at mn.rr.com
Thu Sep 1 18:08:45 CEST 2005


On Thu, 2005-09-01 at 16:58 +0100, herodote at oreka.com wrote:
> hy,
> 
> I need to have the 0 on the bottom left corner of the graph being
> joined , not with this little hole between x axis and y axis...
> 
> I've saw this question with the answer one time but i'm unable to find
> it again..
> 
> 
> thks.
> guillaume

See 'xaxs' and 'yaxs' in ?par:

plot(1:5, xaxs = "i", yaxs = "i", xlim = c(0, 5), ylim = c(0, 5))

By default, both are set to "r", which adds +/- 4% to the range of each
axis.

HTH,

Marc Schwartz




More information about the R-help mailing list