triframe                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 a frame to an existing (barycentric) plot.

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

     triframe(label = 1:3, label.col = 1, cex = 1, ...)

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

   label: labels for the three corners of the plot.

label.col: text color for labels.

     cex: Magnification factor for label text relative to the default.

     ...: Further graphical parameters passed to 'trilines'.

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

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

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

     'triplot', 'trilines', 'trigrid', 'centerlines'

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

     triplot(grid = TRUE, frame = FALSE)     # plot without frame 
     some.triangle <- rbind(c(0, 0.65, 0.35), c(0.53, 0.47, 0), 
                            c(0.72, 0, 0.28))[c(1:3, 1), ]
     trilines(some.triangle, col = "red", pch = 16, type = "b")
     triframe(label = c("left", "top", "right"), col = "blue", 
              label.col = "green3")          # frame on top of points 

