plotScaleSpace            package:KCsmart            R Documentation

_P_l_o_t _m_u_l_t_i_p_l_e _s_i_g_n_i_f_i_c_a_n_t _r_e_g_i_o_n_s _i_n _o_n_e _f_i_g_u_r_e

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

     Plots significant regions in different scale spaces in one figure

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

     plotScaleSpace(spms, sigLevels, chromosomes=NULL, type='b')

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

    spms: List of sample point matrices 

sigLevels: List of significance levels 

chromosomes: Takes a vector of chromosomes to be plotted. Defaults to
          all chromosomes. 

    type: Determines which data is plotted. 'g' for gains only, 'l' for
          losses only and 'b' for both. When type='b' is used, two
          devices (x11) will be opened.

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

     Takes sample point matrices that were calculated using (different)
     kernel widths (sigma), then calculates the significant regions
     given the cutoffs as defined by 'sigLevels' and plots these in one
     figure.

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

     Depending on the 'type' parameter, produces one or two plots, one
     for the gains and one for the losses. The heatmap color indicates
     the level of the gain or loss.

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

     Jorma de Ronde

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

     'plot'

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

     data(hsSampleData)
     data(hsMirrorLocs)

     spm1mb <- calcSpm(hsSampleData, hsMirrorLocs)
     spm4mb <- calcSpm(hsSampleData, hsMirrorLocs, sigma=4000000)

     siglevel1mb <- findSigLevelTrad(hsSampleData, spm1mb, n=3)
     siglevel4mb <- findSigLevelTrad(hsSampleData, spm4mb, n=3)

     plotScaleSpace(list(spm1mb, spm4mb), list(siglevel1mb, siglevel4mb), type='g')

