[R] plots: layout + subtitles

From: Marie-Pierre Sylvestre <mp.sylvestre_at_epimgh.mcgill.ca>
Date: Mon 16 Oct 2006 - 18:01:35 GMT


I want to create a figure that consists of a collection of 16 graphs on 4 rows. I am using

nf <- layout(matrix(seq(1,16), 4,4, byrow=TRUE), respect=TRUE) boxplot(...

to create the layout of my 16 graphs. It works really well. However, I'd like to add sub-titles that would apply to each row of 4 graphs. More specifically, I'd like to have something like:

subtitle 1 (centered)
graph 1 graph 2 graph 3 graph 4
subtitle 2 (centered)
graph 5 graph 6 graph 7 graph 8
subtitle 3 (centered)
graph 9 graph 10 graph 11 graph 12
subtitle 4 (centered)
graph 13 graph 14 graph 15 graph 16

in the same figure, to be saved as a ps file.

Can somebody help?
I hope this question is not redundant, but I have not found information on this on the R mailing lists.

I use R 2.3.1 on Linux FC5.

Thank you in advance.

Marie-Pierre Sylvestre
PhD student, McGill University

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue Oct 17 04:22:32 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 16 Oct 2006 - 21:30:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.