parcoord                package:MASS                R Documentation

_P_a_r_a_l_l_e_l _C_o_o_r_d_i_n_a_t_e_s _P_l_o_t

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

     Parallel coordinates plot

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

     parcoord(x, col = 1, lty = 1, ...)

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

       x: a matrix or data frame who columns represent variables. 

     col: A vector of colours, recycled as necessary for each
          observation. 

     lty: A vector of line types, recycled as necessary for each
          observation. 

     ...: Further graphics parameters which are passed to `matplot'. 

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

     None.

_S_i_d_e _E_f_f_e_c_t_s:

     a parallel coordinates plots is drawn.

_R_e_f_e_r_e_n_c_e_s:

     Wegman, E. J. (1990) Hyperdimensional data analysis using parallel
     coordinates.  Journal of the American Statistical Association, 85,
     664-675.

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

     # The function is currently defined as
     function(x, col = 1, lty = 1, ...)
     {
         x <- apply(x, 2, function(x) (x - min(x))/(max(x) - min(x)))
         matplot(1:ncol(x), t(x), type = "l", col = col, lty = lty,
             xlab = "", ylab = "", axes = FALSE, ...)
         axis(1, at = 1:ncol(x), labels = dimnames(x)[[2]])
         for(i in 1:ncol(x))
             lines(c(i, i), c(0, 1), col = "grey70")
         invisible()
     }

