rcompmargin           package:compositions           R Documentation

_M_a_r_g_i_n_a_l _c_o_m_p_o_s_i_t_i_o_n_s _i_n _r_e_a_l _g_e_o_m_e_t_r_y

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

     Compute marginal compositions by amalgamating the rest
     (additively).

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

               rcompmargin(X,d=c(1,2),name="+",pos=length(d)+1)
               

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

       X: composition or dataset of compositions

       d: vector containing the indices xor names of the columns to be
          kept

    name: The new name of the amalgamation column

     pos: The position where the new amalgamation column should be
          stored. This defaults to the last column.

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

     The amalgamation column is simply computed by adding the 
     non-selected components after closing the composition. This is
     consistent with the 'rcomp' approach and is widely used because of
     its easy interpretation. However, it often leads to
     difficult-to-read ternary diagrams and is inconsistent with the
     'acomp' approach.

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

     A closed compositions with class '"rcomp"' containing the selected
     variables given by 'd' and the the amalgamation column.

_R_e_f_e_r_e_n_c_e_s:

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

     'acompmargin', 'rcomp'

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

     data(SimulatedAmounts)
     plot.rcomp(sa.tnormals5,margin="rcomp")
     plot.rcomp(rcompmargin(sa.tnormals5,c("Cd","Zn")))
     plot.rcomp(rcompmargin(sa.tnormals5,c(1,2)))

