getTickCoords          package:gff3Plotter          R Documentation

_R_e_t_r_i_e_v_e_s _C_o_o_r_d_i_n_a_t_e_s _o_f _B_e_s_t _F_o_r_m_a_t_t_e_d _T_i_c_k _P_o_s_i_t_i_o_n_s _f_o_r _A_x_i_s _L_a_b_e_l_i_n_g

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

     Given a 'range' of minumum ('range[[1]]') and maximum
     ('range[[2]]') values the function suggests the best positions for
     axis ticks and labels aligning those to 1, 2, 5, 10 fold values.
     Specifically designed for large non-negative values, eg. 'range =
     c(100, 12500)' etc. This function is not designed for values < 10
     or negative.

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

     getTickCoords(range)

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

   range: Coordinate range as a numeric vector of two values: minimum -
          'range[[1]]' and maximum - 'range[[2]]'

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

     A numeric vector with tick coordinates.

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

     Oleg Sklyar, email:osklyar@ebi.ac.uk, based on code from W.Huber

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

     'plot.gff', 'plot.gff.toFile'

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

        ticks = getTickCoords(c(150, 10000))
        print(ticks)

