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@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel



--
Brian D. Ripley,                  rip...@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

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to