lines              package:compositions              R Documentation

_D_r_a_w_s _c_o_n_n_e_c_t_e_d _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:

     Functions taking coordinates given in various ways and joining the
     corresponding points with line segments.

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

               ## S3 method for class 'acomp':
               lines(x,...,steps=30)
               ## S3 method for class 'rcomp':
               lines(x,...,steps=30)
               ## S3 method for class 'aplus':
               lines(x,...,steps=30)
               ## S3 method for class 'rplus':
               lines(x,...,steps=30)
               ## S3 method for class 'rmult':
               lines(x,...,steps=30)
               

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

       x: a dataset of the given type

     ...: further graphical parameters

   steps: the numer 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', 'straight'

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

     data(SimulatedAmounts)

     plot(acomp(sa.lognormals))
     lines(acomp(sa.lognormals),col="red")
     lines(rcomp(sa.lognormals),col="blue")

     plot(aplus(sa.lognormals[,1:2]))
     lines(aplus(sa.lognormals[,1:2]),col="red")
     lines(rplus(sa.lognormals)[,1:2],col="blue")

     plot(rplus(sa.lognormals[,1:2]))
     tt<-aplus(sa.lognormals[,1:2]); ellipses(mean(tt),var(tt),r=2,col="red")
     tt<-rplus(sa.lognormals[,1:2]); ellipses(mean(tt),var(tt),r=2,col="blue")
     tt<-rmult(sa.lognormals[,1:2]); ellipses(mean(tt),var(tt),r=2,col="green")

