Skip to content

dotchart.R and left margin

2 messages · Stephen D. Weigand, Brian Ripley

#
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)
    }


Thank you,

Stephen Weigand

--
Rochester, Minn. USA
13 days later
#
On 01/07/2013 16:37, Stephen Weigand wrote:
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.