lseq                 package:sfsmisc                 R Documentation

_G_e_n_e_r_a_t_e _S_e_q_u_e_n_c_e_s, _E_q_u_i_d_i_s_t_a_n_t _o_n _L_o_g _S_c_a_l_e

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

     Generate sequences which are equidistant on a log-scale.

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

     lseq(from, to, length)

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

    from: starting value of sequence.

      to: end value of the sequence.

  length: desired length of the sequence.

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

     a 'numeric' vector of length 'length'.

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

     'seq'.

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

     (x <- lseq(1, 990, length= 21))
     plot(x, x^4,    type = "b", col = 2, log = "xy")
     if(with(R.version, major >= 2 && minor >= 1))
     plot(x, exp(x), type = "b", col = 2, log = "xy")

