From ripley at stats.ox.ac.uk  Fri Nov 21 11:09:02 2008
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Fri, 21 Nov 2008 10:09:02 +0000 (GMT)
Subject: [Rd] Label justification (axis) (PR#13307)
In-Reply-To: <20081120134511.A6EC0283417B@mail.pubhealth.ku.dk>
References: <20081120134511.A6EC0283417B@mail.pubhealth.ku.dk>
Message-ID: <alpine.LFD.2.00.0811210952510.25755@auk.stats.ox.ac.uk>

Can you please provide a complete reproducible example, including the 
device used. E.g.

quartz() # or X11()
plot(1:200, yaxt="n", type="n")
axis(side=2, at=c(0,50,100,125), lab=c("0","50","100"," "), las=1)

does not work as you describe (R 2.8.0 in R.app, Mac OS 10.5.5).

On Thu, 20 Nov 2008, martin.bader at unibas.ch wrote:

> Full_Name: Martin Karl-Friedrich Bader
> Version: 2.8.0
> OS: 10.5.3

Is that Solaris or SuSE or HP-UX or Mac OS?

As only Windows and Mac users seem to be in denial about there being any 
other OS, I suspect we can infer ....

> Submission from: (NULL) (131.152.1.1)
>
>
> Hi there,
>
> when using las=1 on the y-axis the labels keep their centered justification,
> e.g. if you plot a graph using the axis command: axis(side=2, at=c(0,50, 100,
> 125), lab=c("0","50","100", " "), las=1), then the 0 and the 50 are centered in
> relation to the 100! One can work around that problem by inserting blank spaces
> in front of the lower numbers (e.g.: "     0") but that's not an appropriate
> solution! Is there a way that can be fixed? Thanks in advance!
>
> Martin
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] Label justification (axis) (PR#13307)
Prof Brian Ripley