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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
font size for pairs()
3 messages · Simon Bond, Brian Ripley, Peter Dalgaard
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Prof Brian D Ripley <ripley at stats.ox.ac.uk> writes:
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.
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.
O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._