From jh910 at juno.com  Sat Jul 19 22:24:30 2008
From: jh910 at juno.com (J. R. M. Hosking)
Date: Sat, 19 Jul 2008 16:24:30 -0400
Subject: [Rd] axis() ignores supplied value of argument mgp[3]?
Message-ID: <g5tihu$k8u$1@ger.gmane.org>

It seems that when an argument 'mgp' is supplied to axis(),
the mgp[2] value (position of tick mark labels) is honoured
but the mgp[3] value (position of axis line) is ignored.
Example:

   plot(1:5, xaxt='n', ann=FALSE)
   par(mgp=c(0,2,1))
   axis(1, at=2:4, mgp=c(0,-2,-3))

Axis line is plotted at margin line 1, tick mark labels at line -3.

Is this a bug?


J. R. M. Hosking



 > R.version
                _
platform       i386-pc-mingw32
arch           i386
os             mingw32
system         i386, mingw32
status
major          2
minor          7.1
year           2008
month          06
day            23
svn rev        45970
language       R
version.string R version 2.7.1 (2008-06-23)



[Rd] axis() ignores supplied value of argument mgp[3]?
J. R. M. Hosking