pretty10exp             package:sfsmisc             R Documentation

_N_i_c_e  _1_0 ** _k  _L_a_b_e_l _E_x_p_r_e_s_s_i_o_n_s

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

     Produce nice a * 10^k expressions to be used instead of the
     scientific notation  '"a E<k>"'.

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

     pretty10exp(x, drop.1 = FALSE)

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

       x: numeric vector (e.g. axis tick locations)

  drop.1: logical indicating if 1 * should be dropped from the
          resulting expressions.

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

     an expression of the same length as 'x', with elements of the form
     'a %*% 10 ^ k'.

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

     Martin Maechler

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

     'axTexpr' which builds on 'pretty10exp()'; further 'axis',
     'axTicks'.

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

     pretty10exp(-1:3 * 1000)
     pretty10exp(-1:3 * 1000, drop.1 = TRUE)
     pretty10exp(c(1,2,5,10,20,50,100,200) * 1e3)

