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 various ways for the different data types.
     It is always performed as an operation in the enclosing vector
     space. Not in all cases an independent scaling of the different
     coordinates is appropriate. This is only done for rplus and rmult.

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

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

_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)))

