From ripley at stats.ox.ac.uk  Fri Jun 27 20:10:11 2008
From: ripley at stats.ox.ac.uk (ripley at stats.ox.ac.uk)
Date: Fri, 27 Jun 2008 20:10:11 +0200 (CEST)
Subject: [Rd] unexpected lining up of labels in axis(4,
	hadj=1) (PR#11840)
Message-ID: <20080627181011.D5BC7282EFF1@mail.pubhealth.ku.dk>

Please explain (I am quoting the FAQ) how you 'are sure you know for
certain what it ought to have done'.  Please quote and give exact 
references to the documentation that led you to expect what you expected 
(but did not actually describe).

I would have expected it to work as documented using the default value 
mgp=c(3,1,0), and that is what I see when I run the example.  As far as I 
can see this is the result of not wanting what you actually asked for.


On Fri, 27 Jun 2008, rene.locher at zhaw.ch wrote:

> Full_Name: Rene Locher
> Version:  2.7.1
> OS: i386-pc-mingw32
> Submission from: (NULL) (160.85.231.140)
>
>
> Here is the example:
>
> par(las=1,mar=rep(4,4))
> plot(c(-1000,1000),axes=FALSE)
> box()
> axis(4,hadj=1)
> ## axis labels are positioned in an awkward way
>
> ## I would expect to see label positions like here:
> axis(4,hadj=1,mgp=c(3,3,0))
>
> These are my sessionInfos:
> R version 2.7.1 (2008-06-23)
> i386-pc-mingw32
>
> locale:
> LC_COLLATE=German_Switzerland.1252;LC_CTYPE=German_Switzerland.1252;LC_MONETARY=German_Switzerland.1252;LC_NUMERIC=C;LC_TIME=German_Switzerland.1252
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
> ______________________________________________
> 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] unexpected lining up of labels in axis(4, hadj=1) (PR#11840)
ripley at stats.ox.ac.uk