[R] Scaling of font sizes in layout()

Pisut Tempatarachoke pxt at ph.adfa.edu.au
Wed Mar 24 10:34:33 CET 2004


Hi all,

In the following example,

#--------------EXAMPLE------------------
test <- function(subfigure)
{
plot(c(1:10),c(1:10),cex=4)
text(1,9,subfigure,cex=10)
}
m <- matrix(c(1,2,5,5,3,4,5,5),4,2)
layout(m)
test("a")
test("b")
test("c")
test("d")
test("e")
#---------------------------------------

Is it possible to have the font (a,b,...,e) and pch sizes (including the 
axis-label, tick and tick-label sizes) scaled proportionally with the 
size of each plot when I put multiple plots on the same page?

Thanks in advance!!

Regards
Tempo




More information about the R-help mailing list