tripoints                package:klaR                R Documentation

_B_a_r_y_c_e_n_t_r_i_c _p_l_o_t_s

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

     Function to add points or lines to an existing (barycentric) plot.

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

     tripoints(x, y = NULL, z = NULL, ...)
     trilines(x, y = NULL, z = NULL, ...)

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

       x: Vector of fractions of first component OR 3-column matrix
          containing all three components (omitting 'y' and 'z') OR
          3-element vector (for all three components, omitting 'y' and
          'z').

       y: (optional) vector of fractions of second component.

       z: (optional) vector of fractions of third component.

     ...: Further graphical parameters (see 'points' and 'par').

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

     Adds points or lines to an existing plot (generated by 'triplot').

_A_u_t_h_o_r(_s):

     Christian Rver, roever@statistik.uni-dortmund.de

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

     'points', 'lines', 'triplot', 'tritrafo', 'centerlines'

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

     triplot()  # empty plot 
     tripoints(0.1, 0.2, 0.7)                        # a point 
     tripoints(c(0.2, 0.6), c(0.3, 0.3), c(0.5, 0.1),
         pch = c(2, 6))                              # two points
     trilines(c(0.1, 0.6), c(0.2, 0.3), c(0.7, 0.1), 
         col = "blue", lty = "dotted")               # a line 

     trilines(centerlines(3))

