Skip to content

font size for pairs()

3 messages · Simon Bond, Brian Ripley, Peter Dalgaard

#
Dear R-Help,

I'm having some trouble with the font size in the pairs() function. It
seems to be impossible to alter the font size for the variable labels that
run down the diagonal. I've tried all the cex.??? parameters to no avail.

I'm using R0.65.0 on windowsNT. If the simple answer is to upgrade to the
latest version of R, then please accept my humble apologies for troubling you.


Simon Bond.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 Fri, 4 Feb 2000, Simon Bond wrote:

            
I think you just need to modify the function pairs.default to something
like

function (x, labels, panel = points, main = NULL, font.main =
par("font.main"), 
    cex.main = par("cex.main"), cex.labels= par("cex"), ...) 
....
            text(mean(par("usr")[1:2]), mean(par("usr")[3:4]), 
                labels[i], cex=cex.labels)
....

I see S-PLUS computes the cex from the number if plots, and I suspect
we should consider a better default. pairs(USJudgeRatings[, 1:3])
looks pretty silly.
Well, all the font sizes have been altered since then, but with 0.99.0
imminent you might want to wait for that before upgrading.
#
Prof Brian D Ripley <ripley at stats.ox.ac.uk> writes:
Boldfacing the labels would likely look neat too. Perhaps use largest
font size that allow all labels to fit inside box (or 90% of it)? 

Post 0.99 stuff though.