mtitle                 package:Hmisc                 R Documentation

_M_a_r_g_i_n _T_i_t_l_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Writes overall titles and subtitles after a multiple image plot is
     drawn. If 'par()$oma==c(0,0,0,0)', 'title' is used instead of
     'mtext', to draw titles or subtitles that are inside the plotting
     region for a single plot.

_U_s_a_g_e:

     mtitle(main, ll, lc,  
            lr=if(.R.) format(Sys.time(),'%d%b%y') else
             if(under.unix)unix("date '+%d%h%y'") else date(), 
            cex.m=1.75, cex.l=.5, ...)
     none

_A_r_g_u_m_e_n_t_s:

    main: main title to be centered over entire figure, default is none 

      ll: subtitle for lower left of figure, default is none 

      lc: subtitle for lower center of figure, default is none 

      lr: subtitle for lower right of figure, default is today's date
          in format 23Jan91 for UNIX or R (Thu May 30 09:08:13 1996
          format for Windows).  Set to '""' to suppress lower right
          title. 

   cex.m: character size for main, default is 1.75 

   cex.l: character size for subtitles 

     ...: other arguments passed to 'mtext' 

_V_a_l_u_e:

     nothing

_S_i_d_e _E_f_f_e_c_t_s:

     plots

_A_u_t_h_o_r(_s):

     Frank Harrell 
      Department of Biostatistics, Vanderbilt University 
      f.harrell@vanderbilt.edu

_S_e_e _A_l_s_o:

     'par', 'mtext', 'title', 'unix', 'pstamp'

_E_x_a_m_p_l_e_s:

     #Set up for 1 plot on figure, give a main title,
     #use date for lr
     plot(runif(20),runif(20))
     mtitle("Main Title")

     #Set up for 2 x 2 matrix of plots with a lower left subtitle and overall title
     par(mfrow=c(2,2), oma=c(3,0,3,0))
     plot(runif(20),runif(20))
     plot(rnorm(20),rnorm(20))
     plot(exp(rnorm(20)),exp(rnorm(20)))
     mtitle("Main Title",ll="n=20")

