Re: [R] plot only x- and y-axis with origin, no box()

From: Romain Francois <>
Date: Tue, 19 Jun 2007 16:28:07 +0100


You are looking for the box function, and its bty argument. For example, this one will do the trick.

R> box( bty = "L")

?par gives more information on the potential values for bty.



Talloen, Willem [PRDBE] wrote:
> hi all,
> I'm trying for quite some time to have an x- and y-axis, but no entire box.
>> plot(..,axes=F)
>> axis(1)
>> axis(2)
> Gives this, but their axes do not go to the origin.
> Quite a number of people find this gap between the two axes disturbing.
> Has anyone an idea how to let these axes go to the origin?
> thank you in advance

Mango Solutions
data analysis that delivers

Tel:  +44(0) 1249 467 467
Fax:  +44(0) 1249 467 468
Mob:  +44(0) 7813 526 123

R training course for the Pharmaceutical Industry
1st  - 3rd  October. Basel, Switzerland

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 19 Jun 2007 - 15:43:05 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 19 Jun 2007 - 16:32:04 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.