[R] axis help
Martin Elff
elff at sowi.uni-mannheim.de
Wed Feb 6 20:40:07 CET 2008
On Wednesday 06 February 2008 (15:14:28), rich at thevillas.eclipse.co.uk wrote:
> Hi, i'm having trouble with my x and y axis. The commands i'm using are
> below. The problem is that the y axis starts at coordinate 0,1 and the x
> axis starts at coordinate 0,0. As far as I know the y axis can't start
> at 0 (because it's log scaled) ,so I would like to position the x axis at
> 0,1 but don't know how to do this. Could anyone advise?
> axis(1,at=c(0,0.6,1.1,1.6,2.1,2.6,3.1,3.6),labels=c(0,3,4,5,6,7,8,NA))
> axis(2)
Try:
axis(1,at=c(0,0.6,1.1,1.6,2.1,2.6,3.1,3.6),labels=c(0,3,4,5,6,7,8,NA),pos=1)
The 'pos=' argument does the trick.
Best,
Martin
More information about the R-help
mailing list