stringSize             package:ifultools             R Documentation

_S_i_z_e _o_f _a _c_h_a_r_a_c_t_e_r _s_t_r_i_n_g _i_n _c_u_r_r_e_n_t _f_o_n_t

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

     Calculates the approximate relative x and y spans of the input
     character string x in the current par("usr") coordinates. The
     'srt', 'adj', and 'cex' inputs are exactly those specified by the
     'par' function.

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

     stringSize(x, srt=0, adj=0.5, cex=1)

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

       x: a character string.

     adj: a numeric value on the interval [0,1] used to justify the
          text relative to its placement in a plot. Default: 0.5
          (center aligned).

     cex: the expansion value for the character string. Default: 1.

     srt: a numeric value defining the amount of string rotation in
          degrees. Default: 0.

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

     a list of x- and y-vectors that can be used to estimate the width
     and height, respectively, of the input character string in the
     current par("usr") coordinates. Each vector contains a relative
     starting and ending value and the absolute difference between the
     two values repesents the span in the corresponding direction.

_N_o_t_e:

     A graphics window will open up if one is not already opened.

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

     'par', 'autoKey', 'autoText', 'em'.

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

     stringSize("What's for dinner?", adj=0, srt=45, cex=1.5)

