[R] Add text A, B, C and D on multiple ordered plot

Bretschneider SIG-R bretschr at xs4all.nl
Sat Feb 9 00:36:10 CET 2013


Dear Fabrice Tourre,


Re:



> John Kane,
> 
> Thanks. It makes some of sense. But it seems not exactly what I want.
> I just remember it need using mtext and adjust margin. I saw such of
> example long time ago, but I have forgotten it.

(etc...)




Maybe this is what you're after?

Fiddled a bit with the margins:


a<- rnorm(1000,0,1)
b<-rnorm(1000,0,2)
c<-rnorm(1000,0,3)
d<-rnorm(1000,0,4)
quartz(w=6,h=8)
par(mfrow=c(2,2))
#par(mai=c(1,0,1,1))
par(mar=c(3,2,4,1))
#par(plt=c(1.1,1.1,1.1,1.1))
tlin=2
hist(a)
mtext("A",3, line=tlin, adj=0, cex=2)
hist(b)
mtext("B",3, line=tlin, adj=1, cex=2)
hist(c)
mtext("C",3, line=tlin, adj=0, cex=2)
hist(d)
mtext("D",3, line=tlin, adj=1, cex=2)


Hope this helps,
Best regards,


Franklin Bretschneider


--
Dept Biologie
Kruytgebouw W711
Padualaan 8
3584 CH Utrecht
The Netherlands



More information about the R-help mailing list