Yes Greg,
Your provided solution does the job;
plot(5:10, 5:10, bty='n')
library(TeachingDemos)
lines(cnvrt.coords( c(0,0,.5), c(.5,0,0), input='plt')$usr)
The easy way is indeed to do
plot(.., bty='l')
but this cannot be used in combination with fixing tickmarks and changing width
of the
perfect Romain,
box( bty = l, lwd = 2 )
is the solution !
thank you all for your kind responses,
willem
-Original Message-
From: Romain Francois [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 20 June 2007 10:01
To: Talloen, Willem [PRDBE]
Subject: Re: [R] plot only x- and y-axis with origin,
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
On Tue, 2007-06-19 at 15:15 +0200, 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
Hello,
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.
Cheers,
Romain
Talloen, Willem [PRDBE] wrote:
hi all,
I'm trying for quite some time to have an x- and
Try:
plot(.., bty='l')
Does that do what you want? (see the bty parameter in ?par for details)
If you don't want the lines extending beyond the axes on the right and
top then you could do something more like:
plot(5:10, 5:10, bty='n')
library(TeachingDemos)
lines(cnvrt.coords( c(0,0,.5),