printBanner           package:haplo.stats           R Documentation

_P_r_i_n_t _a _n_i_c_e _b_a_n_n_e_r

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

     Print a nice banner with a border above and below the text.  It
     centers the text, and adjusts to the width system option by
     breaking into multiple lines when needed.

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

     printBanner(str, banner.width=options()$width, char.perline=.75*banner.width, border="=")

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

     str: character string - a title within the banner 

banner.width : width of banner, the default is set to fit current
          options 

char.perline : number of characters per line for the title, the default
          is 75% of  the banner.width parameter  

  border: type of character for the border 

_D_e_t_a_i_l_s:

     This function prints a nice banner in both R and S-PLUS

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

     options

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

     printBanner("This is a pretty banner", banner.width=40, char.perline=30)

     # the output looks like this:
     # ========================================
     #         This is a pretty banner
     # ========================================

