[R] font size for pairs()
Prof Brian D Ripley
ripley at stats.ox.ac.uk
Fri Feb 4 16:10:38 CET 2000
On Fri, 4 Feb 2000, Simon Bond wrote:
> 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 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.
> 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.
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.
--
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 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list