fwdmvDistancePlot           package:Rfwdmv           R Documentation

_P_l_o_t _t_h_e _M_a_h_a_l_a_n_o_b_i_s _D_i_s_t_a_n_c_e_s _i_n _a_n _f_w_d_m_v _O_b_j_e_c_t

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

     Plots the Mahalanobis distance against the subset size for each
     unit in the 'fwdmv' object.

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

     fwdmvDistancePlot(x, group = NULL, id = FALSE, psfrag.labels = FALSE)

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

       x: an 'fwdmv' object.

   group: show only the trajectories for the units in this group.

      id: identify trajectories in the plot.  If 'id = TRUE' then
          trajectories in the plot can be identified interactively with
          the mouse.  If 'id' is an integer vector then the
          trajectories for those units are identified in the plot.  If
          'id = "all"' then all of the trajectories are labelled.

psfrag.labels: a logical value.  If 'TRUE' then the x, y, and main
          labels are set to "xlab", "ylab", and "main" for replacement
          via the psfrag utility.

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

     a list is invisibly returned.  If 'id = TRUE' then the list has an
     element named 'selected' containing the indices of the identified
     trajectories.

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

     Kjell Konis

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

     Atkinson, A. C., Riani, M. and Cerioli, A. (2004) Exploring
     Multivariate Data with the Forward Search. Springer-Verlag New
     York.

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

     'fwdmv.object', 'fwdmv'

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

     data(fondi.dat)
     fondi.1 <- fwdmv(fondi.dat)

     fwdmvDistancePlot(fondi.1)

     # Use 'id = TRUE' for interactive trajectory identification.

     fwdmvDistancePlot(fondi.1, id = c(39, 52, 96))

     g1 <- c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 51, 53, 55, 56)

     g2 <- c(57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103)

     fondi.2 <- fwdmv(fondi.dat, groups = list(g1, g2))

     fwdmvDistancePlot(fondi.2, group = 2)

