scale              package:compositions              R Documentation

_N_o_r_m_a_l_i_z_i_n_g _d_a_t_a_s_e_t_s _b_y _c_e_n_t_e_r_i_n_g _a_n_d _s_c_a_l_i_n_g

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

     The dataset is standardized by optional scaling and centering.

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

     ## S3 method for class 'acomp':
     scale(x,center=TRUE, scale=TRUE)
     ## S3 method for class 'rcomp':
     scale(x,center=TRUE, scale=TRUE)
     ## S3 method for class 'aplus':
     scale(x,center=TRUE, scale=TRUE)
     ## S3 method for class 'rplus':
     scale(x,center=TRUE, scale=TRUE)
     ## S3 method for class 'rmult':
     scale(x,center=TRUE, scale=TRUE)
               

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

       x: a dataset or a single vector of some type

  center: logical value

   scale: logical value

_D_e_t_a_i_l_s:

     scaling is defined in different ways for the different data types.
     It is always performed as an operation in the enclosing vector
     space. In all cases an independent scaling of the different
     coordinates is not always appropriate. This is only done for rplus
     and rmult geometries. The other three geometries are treated with
     a global scaling, keeping the relative variations of every
     part/amount.

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

     a vector or data matrix, as 'x' and with the same class, but
     acordingly transformed.

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

     K.Gerald v.d. Boogaart <URL: http://www.stat.boogaart.de>

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

     'split{base}'

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

       data(SimulatedAmounts)
       plot(scale(acomp(sa.groups)))
       ## Not run: 
     plot(scale(rcomp(sa.groups)))
     ## End(Not run)
       plot(scale(aplus(sa.groups)))
       ## Not run: 
     plot(scale(rplus(sa.groups)))
     ## End(Not run)
       plot(scale(rmult(sa.groups)))

