Dear List, I would like to add captions to a set of graphics. The graphs are each composed of two scatter plots in an upper and lower pane. I'd like to add a caption below the lower pane. The troubel I'm hitting is that in order to fit the caption using mtext, I must increase the margins for both panes-- these shrinks my plots considerably and leaves a big blank area. The second trouble I'm having is to get the mtext to appear at the left margin. I see that ?mtext refers to the possibility of placing the text in the outer margin. What is this? the look I want is: ----------------- | | | | _________________ xlab _________________ | | | | _________________ xlab Fig. *** Thanks, David S. David White sdavidwhite at bigfoot.com Columbus, Ohio -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
David White <dwhite at ling.ohio-state.edu> writes:> Dear List, > > I would like to add captions to a set of graphics. The graphs are each > composed of two scatter plots in an upper and lower pane. > > I'd like to add a caption below the lower pane. The troubel I'm hitting is > that in order to fit the caption using mtext, I must increase the margins > for both panes-- these shrinks my plots considerably and leaves a big > blank area. > > The second trouble I'm having is to get the mtext to appear at the left > margin. > > I see that ?mtext refers to the possibility of placing the text in the > outer margin. What is this? > > the look I want is: > > ----------------- > | | > | | > _________________ > xlab > _________________ > | | > | | > _________________ > xlab > Fig. ***I think you want to take a look at "An introduction to R", page 76 in particular. It is usually installed along with R itself, otherwise take a look at http://cran.r-project.org/doc/manuals/R-intro.pdf (Requires Acrobat reader or similar software. The introduction is also there in HTML format, but without pictures, and the one on p.76 is fairly crucial to your issue.) -- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Tue, 27 Nov 2001 12:40:15 -0500 (EST), you wrote:>I see that ?mtext refers to the possibility of placing the text in the >outer margin. What is this?The outer margin is a margin around the whole page of plots. It sounds like that's where you want to put your text. The problem you're likely having is that by default there is no space reserved for the outer margin. You need something like par(oma = c(2,0,0,0)) to reserve 2 lines at the bottom of the page, none on the other sides. Do this after opening the graphics device, before drawing any plots on the page. Duncan Murdoch -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._