barplot.acomp          package:compositions          R Documentation

_B_a_r_c_h_a_r_t_s _o_f _a_m_o_u_n_t_s

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

     Compositions and amounts can

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

     ## S3 method for class 'acomp':
     barplot(height,...,legend.text=TRUE,beside=FALSE,total=1)
     ## S3 method for class 'rcomp':
     barplot(height,...,legend.text=TRUE,beside=FALSE,total=1)
     ## S3 method for class 'aplus':
     barplot(height,...,legend.text=TRUE,beside=TRUE)
     ## S3 method for class 'rplus':
     barplot(height,...,legend.text=TRUE,beside=TRUE)
               

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

  height: an acomp, rcomp, aplus, or rplus object giving amounts to be
          displayed by a barplot

     ...: further graphical parameters as in 'barplot'

legend.text: same as legend.text in 'barplot'

  beside: same as beside in 'barplot'

   total: The total to be used in displaying the composition, typically
          1, 100 or the number of parts

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

     The functions are essentially light weighted warpers for 'barplot'
     just adding a adequate default behavior for each of the scales.

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

     A numeric vector (or matrix, when 'beside = TRUE') giving the
     coordinates of all the bar midpoints drawn, as in 'barchart'

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

     'acomp', 'rcomp',   'rplus' 'aplus', 'plot.acomp', 'boxplot.acomp'

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

     data(SimulatedAmounts)
     barplot(mean(acomp(sa.lognormals[1:10,])))
     barplot(mean(rcomp(sa.lognormals[1:10,])))
     barplot(mean(aplus(sa.lognormals[1:10,])))
     barplot(mean(rplus(sa.lognormals[1:10,])))

     barplot(acomp(sa.lognormals[1:10,]))
     barplot(rcomp(sa.lognormals[1:10,]))
     barplot(aplus(sa.lognormals[1:10,]))
     barplot(rplus(sa.lognormals[1:10,]))

