Re: [R] axis help

From: Martin Elff <elff_at_sowi.uni-mannheim.de>
Date: Wed, 6 Feb 2008 20:40:07 +0100

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



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 06 Feb 2008 - 19:42:32 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 Wed 06 Feb 2008 - 20:30:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive