Skip to content

dotplot: character size of labels

3 messages · RINNER Heinrich, Brian Ripley, Uwe Ligges

#
Dear R users,

using dotplot (R1.2.0, WinNT4.0), I am trying to change the character size
of the labels of the points:
population groups)
can be a useful way of avoiding label overlap."
labels
I'd be grateful for any hint how to do this correctly;

regards,

Heinrich.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Thu, 18 Jan 2001, RINNER Heinrich wrote:

            
Looks like a bug. Inside dotplot alter to

        for (i in 1:n) mtext(labs[i], side = 2, line = loffset,
            at = y[i], adj = 0, col = color, las = 2, cex = cex, ...)

        for (i in 1:nlevels(groups)) mtext(glabels[i], side = 2,
            line = goffset, at = gpos[i], adj = 0, col = gcolor,
            las = 2, cex = cex, ...)

However, it really needs more than that to calculate the spaces for the
labels correctly.
#
RINNER Heinrich wrote:
You have to add "cex = cex" in the mtext() calls in the function
dotplot():

63-64:
        for (i in 1:n) mtext(labs[i], side = 2, line = loffset, 
            at = y[i], adj = 0, col = color, las = 2, cex = cex,...)

73-75:
 for (i in 1:nlevels(groups)) mtext(glabels[i], side = 2, 
            line = goffset, at = gpos[i], adj = 0, col = gcolor, 
            las = 2, cex = cex, ...)


Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._