plotellipse            package:SensoMineR            R Documentation

_P_l_o_t _c_o_n_f_i_d_e_n_c_e _e_l_l_i_p_s_e_s

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

     Plot confidence ellipses.

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

     plotellipse(mat, alpha = 0.05, coord = c(1,2), eig, cex = 1, color = NULL)

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

     mat: Matrix with all the points

   alpha: the confidence level of the ellipses

   coord: a length 2 vector specifying the components to plot

     eig: a matrix with the component of the factor analysis (in row)
          and the eigenvalues, the inertia and the cumulative inertia
          for each component. Typically, the 'eig' output of the
          'construct.axes' function

     cex: cf. function 'par' in the 'graphics' package

   color: a vector with the colors used; by default there are 35 colors
          defined

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

     Franois Husson

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

     data(chocolates)
     donnee <- cbind.data.frame(sensochoc[,c(1,4,5:18)])
     axe <- construct.axes(donnee, scale.unit = TRUE)
     simul <- simulation(axe)
     plotellipse (simul, alpha = 0.05, eig = signif(axe$eig,4))
     #######################################
     donnee <- cbind.data.frame(sensochoc[,c(1,4,5:18)])
     axe <- construct.axes(donnee, group = c(6,8), 
         name.group = c("A-F","T-S"),scale.unit = TRUE)
     simul <- simulation(axe, nbgroup = (ncol(axe$partiel)-2)/(ncol(axe$moyen)-2))
     plotellipse (simul, alpha = 0.05, eig = signif(axe$eig,4))

