scaleto             package:quantsmooth             R Documentation

_S_c_a_l_e_s _d_a_t_a _w_i_t_h_i_n _a _r_a_n_g_e _t_o _a _n_e_w _r_a_n_g_e

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

     This function scales data to a new range while enforcing the
     boundaries. This  can be helpful in preventing overlap between
     chromosomal plots that display multiple chromosomes in the same
     plot

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

     scaleto(x, fromlimits = c(0, 50), tolimits = c(0.5, -0.5), adjust = TRUE)

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

       x: numeric

fromlimits: numeric vector with length 2, original range of data

tolimits: numeric vector with length 2, target range of data

  adjust: logical, if 'TRUE' then the target values are clipped to the
          target range

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

     numeric of same size as 'x'

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

     Jan Oosting

