hcut                package:agricolae                R Documentation

_C_u_t _t_r_e_e _o_f _c_o_n_s_e_n_s_u_s

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

     It shows dendrogram of a consensus of a tree generated by hclust.

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

     hcut(consensus,h,group,col.text="blue",cex.text=1,...)

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

consensus: object consensus 

       h: numeric scalar or vector with heights where the tree should
          be cut. 

   group: an integer scalar with the desired number of group 

col.text: color of number consensus 

cex.text: size of number consensus 

     ...: Other parameters of the function plot() in cut() 

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

     hcut returns a data.frame with group memberships and consensus
     tree.

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

     F. de Mendiburu

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

     'hclust', 'consensus', 'hgroups'

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

     library(agricolae)
     data(pamCIP)
     # only code
     rownames(pamCIP)<-substr(rownames(pamCIP),1,6)
     # groups of clusters
     output<-consensus(pamCIP,nboot=100)
     hcut(output,h=0.4,group=5,main="Group 5")
     # 
     hcut(output,h=0.4,group=8,type="t",edgePar = list(lty=1:2, col=2:1),main="group 8"
     ,col.text="blue",cex.text=1)

