kmeans2                package:Mfuzz                R Documentation

_K-_m_e_a_n_s _c_l_u_s_t_e_r_i_n_g _f_o_r _g_e_n_e _e_x_p_r_e_s_s_i_o_n _d_a_t_a

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

     This function is a wrapper function for 'kmeans' of the 'e1071'
     package.  It performs hard clustering of genes based on their
     expression values using the k-means algorithm.

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

     kmeans2(eset,k,iter.max=100)

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

    eset: object of the class _ExpressionSet_.

       k: number of clusters.

iter.max: maximal number of iterations.

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

     An list of clustering components (see 'kmeans').

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

     Matthias E. Futschik (<URL:
     http://itb.biologie.hu-berlin.de/~futschik>)

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

     'kmeans'

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

     if (interactive()){
     data(yeast)
     # Data pre-processing
     yeastF <- filter.NA(yeast)
     yeastF <- fill.NA(yeastF)
     yeastF <- standardise(yeastF)

     # K-means clustering and visualisation
     kl <- kmeans2(yeastF,k=20)
     kmeans2.plot(yeastF,kl=kl,mfrow=c(2,2))
     }

