From ripley at stats.ox.ac.uk  Mon Jul 15 12:22:05 2013
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Mon, 15 Jul 2013 11:22:05 +0100
Subject: [Rd] dotchart.R and left margin
In-Reply-To: <CAPaK=1GxqTJftxSy0tRRkBtwiQrMdm8PtjtovKWUTf0ppJwrog@mail.gmail.com>
References: <CAPaK=1GxqTJftxSy0tRRkBtwiQrMdm8PtjtovKWUTf0ppJwrog@mail.gmail.com>
Message-ID: <51E3CD4D.2010400@stats.ox.ac.uk>

On 01/07/2013 16:37, Stephen Weigand wrote:
> Hello,
>
> In trying to minimize the margin on the left hand side when using
> dotchart I found what may be a typo in the code.
>
> In the lines below from dotchart.R, should nmai[4L] be nmai[2L]?
>
>
>      if (!(is.null(labels) && is.null(glabels))) {
> nmai <- par("mai")
> nmai[2L] <- nmai[4L] + max(linch + goffset, ginch) + 0.1
> par(mai = nmai)
>      }

I think not.  It is unclear what the intention is, but it seems to be to 
visually balance the left and right margins of the whole plot including 
the labels.

It goes back a very long way: the changes since dotchart replaced 
dotplot in 2001 are merely cosmetic.

>
> Thank you,
>
> Stephen Weigand
>
> --
> Rochester, Minn. USA
>
> ______________________________________________
> 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] dotchart.R and left margin
Prof Brian Ripley