plotSampleRelation           package:lumi           R Documentation

_v_i_s_u_a_l_i_z_e _t_h_e _s_a_m_p_l_e _r_e_l_a_t_i_o_n_s

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

     plot the sample relations based on MDS or hierarchical clustering

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

     plotSampleRelation(x, selProbe = NULL, cv.Th = 0.1, standardize = TRUE, method = c("cluster", "mds"), dimension = c(1, 2), color = NULL)

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

       x: a LumiBatch object, ExpressionSet object or a matrix with
          each column corresponding to a sample

selProbe: the selected probes used to determine the sample relations.
          If not provide, all the probes will be used. 

   cv.Th: the threshold of the coefficient of variance of probes used
          to select probes to estimate sample relations 

standardize: standardize the expression profiles or not 

  method: "MDS" or "hierarchical clustering" 

dimension: the principle components to visualize the MDS plot 

   color: the color for each sample during plot. Only support the "mds"
          method 

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

     Estimate the sample relations based on selected probes (based on
     large coefficient of variance (mean / standard variance)). Two
     methods can be used: MDS (Multi-Dimensional Scaling) or
     hierarchical clustering methods.

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

     Plot the results or return the distance matrix.

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

     Pan Du

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

     'lumiQ', 'LumiBatch', , 'plot.LumiBatch'

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

     ## load example data
     data(example.lumi)

     ## plot the sample relations with MDS
     ## the color of sample is automatically set based on the sample type
     plotSampleRelation(example.lumi, col=c('100US', '95US:5P', '100US', '95US:5P'))

     ## plot the sample relations with hierarchical clustering
     plotSampleRelation(example.lumi, method='cluster')

