segments            package:compositions            R Documentation

_D_r_a_w_s _s_t_r_a_i_g_h_t _l_i_n_e_s _f_r_o_m _p_o_i_n_t _t_o _p_o_i_n_t.

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

     The function draws lines from a points x to a point y in the given
     geometry.

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

               ## S3 method for class 'acomp':
               segments(x0,y,...,steps=30)
               ## S3 method for class 'rcomp':
               segments(x0,y,...,steps=30)
               ## S3 method for class 'aplus':
               segments(x0,y,...,steps=30)
               ## S3 method for class 'rplus':
               segments(x0,y,...,steps=30)
               ## S3 method for class 'rmult':
               segments(x0,y,...,steps=30)
               

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

      x0: dataset of points of the given type to draw the line from

       y: dataset of points of the given type to draw the line to

     ...: further graphical parameters

   steps: the number of discretisation points to draw the segments not
          straight on the monitor.

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

     The functions add lines to the graphics generated with the
     corresponding plot functions. 

     Adding to multipaneled plots, redraws the plot completely and is
     only possible, when the plot has been created with the plotting
     routines from this library.

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

     'plot.acomp','lines.acomp'

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

     data(SimulatedAmounts)

     plot(acomp(sa.lognormals))
     segments.acomp(acomp(c(1,2,3)),acomp(c(2,3,1)),col="red")
     segments.rcomp(acomp(c(1,2,3)),acomp(c(2,3,1)),col="blue")

     plot(aplus(sa.lognormals[,1:2]))
     segments.aplus(aplus(c(10,20)),aplus(c(20,10)),col="red")
     segments.rplus(rplus(c(10,20)),rplus(c(20,10)),col="blue")

     plot(rplus(sa.lognormals[,1:2]))
     segments.aplus(aplus(c(10,20)),aplus(c(20,10)),col="red")
     segments.rplus(rplus(c(10,20)),rplus(c(20,10)),col="blue")

