rescale                package:ggplot                R Documentation

_R_e_s_c_a_l_e _n_u_m_e_r_i_c _v_e_c_t_o_r

_D_e_s_c_r_i_p_t_i_o_n:

     Rescale numeric vector to have specified minimum and maximum.

_U_s_a_g_e:

     rescale(x, to=c(0,1), from=range(x, na.rm=TRUE))

_A_r_g_u_m_e_n_t_s:

       x: 

      to: 

    from: 

_D_e_t_a_i_l_s:

_A_u_t_h_o_r(_s):

     Hadley Wickham <h.wickham@gmail.com>

_E_x_a_m_p_l_e_s:

