pclen                 package:gclus                 R Documentation

_P_r_o_f_i_l_e _s_m_o_o_t_h_n_e_s_s _m_e_a_s_u_r_e_s

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

     Computes measures of profile smoothness of 2-d data, where 'x' and
      'y' give the object coordinates.

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

     pclen(x, y)
     pcglen(x, y)

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

       x: is a numeric vector. 

       y: is a numeric vector. 

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

     'pclen' computes the total line length in a parallel coordinate
     plot of x and y.

     'pcglen' computes the average (per object) line length in a
     parallel coordinate plot where all pairs of objects are connected.

     Usually, the data is standardized prior to using these functions.

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

     The panel measure is returned.

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

     Catherine B. Hurley

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

     Hurley, Catherine B.  "Clustering Visualisations of
     Multidimensional  Data", Journal of Computational and Graphical
     Statistics, vol. 13, (4), pp 788-806, 2004.

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

     'cparcoord',  'colpairs', 'order.endlink'.

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

     x <- runif(20)
     y <- runif(20)
     pclen(x,y)

     data(state)
     mins <- apply(state.x77,2,min)
     ranges <- apply(state.x77,2,max) - mins
     state.m <- -colpairs(scale(state.x77,mins,ranges), pclen)
     state.col <- dmat.color(state.m)
     cparcoord(state.x77, panel.color= state.col)
     # Get rid of the panels with long line segments (yellow) by reordering:
     cparcoord(state.x77, order.endlink(state.m), state.col)

