setTitle               package:epicalc               R Documentation

_S_e_t_t_i_n_g _t_h_e _d_i_s_p_l_a_y_e_d _l_a_n_g_u_a_g_e _o_f _E_p_i_c_a_l_c _g_r_a_p_h _t_i_t_l_e

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

     Setting locale and internationalizing Epicalc graph title

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

     setTitle(locale)

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

  locale: A string denoting international language of choice

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

     On calling 'library(epicalc)', '.locale' has an inital value of
     FALSE, ie. the titles of Epicalc's automatic graphs are displayed
     in the English language. 'setTitle' has two effects. It selects
     the locale and resets the hidden object '.locale' to TRUE. The
     command internationalizes the title of automatic graphs created by
     Epicalc according to 'locale' given in the function's argument. 

     If '.locale' is TRUE, then the automatic graphs produced by
     Epicalc commands, such as 'summ(var)' or 'tab1(var)' or
     'tabpct(var1,var2)', will lookup a language conversion table for
     the graph title and the title will be changed accordingly.

     Internationalization of the title can be disabled by typing
     '.locale <- FALSE'. This has no effect of locale as a whole unless
     it is reset to English by issuing the command
     'setTitle("English")'.

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

     Virasakdi Chongsuvivatwong <cvirasak@medicine.psu.ac.th>

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

     'Sys.setlocale', 'Sys.getlocale' and 'titleString'

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

     use(iris)
     summ(Sepal.Length, by=Species)
     setTitle("English")
     dotplot(Sepal.Length, by=Species)
     setTitle("Malay")
     dotplot(Sepal.Length, by=Species)
     setTitle("Spanish")
     dotplot(Sepal.Length, by=Species)
     detach(.data)
     rm(.data)

