Skip to content
Prev 164072 / 398506 Next

legend at fixed distance form the bottom

Try this:

symboles <- c(3,4,5,6)
dn <- rbind(matrix(rnorm(20),5))
layout(matrix(c(1,1,1,2,2,3),3))


for(i in 1:3){
  matplot(dn,type="b",xlab="",pch=symboles)
  legend(grconvertX(0.5,'nfc'), grconvertY(0,'nfc'),
        xjust=0.5, yjust=0,
        pch = unique(symboles),
        legend = c("a","b","c","d"),
        horiz = TRUE, xpd = NA)
}


Does that do what you want?  Or at least get you started in the correct direction?

--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111