[R] printing captions in multiple panes

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Tue Nov 27 18:56:47 CET 2001


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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list