plotPeak           package:MassSpecWavelet           R Documentation

_P_l_o_t _t_h_e _i_d_e_n_t_i_f_i_e_d _p_e_a_k_s _o_v_e_r _t_h_e _s_p_e_c_t_r_u_m

_D_e_s_c_r_i_p_t_i_o_n:

     Plot the identified peaks over the spectrum. The identified peaks
     are returned by 'peakDetectionCWT' or 'identifyMajorPeaks'

_U_s_a_g_e:

     plotPeak(ms, peakIndex = NULL, mz = 1:length(ms), range = c(min(mz), max(mz)), method = c("p", "l"), main = NULL, log = "", ...)

_A_r_g_u_m_e_n_t_s:

      ms: the MS spectrum 

peakIndex: m/z indexes of the identified peaks 

      mz: m/z value correspond to m/z index 

   range: the plot range of m/z value

  method: plot method of the identified peaks. method 'p' plot circles
          on the peaks; method 'l' add vertical lines over the peaks.  

    main: parameter of 'plot'

     log: parameter of 'plot' 

     ...: other parameters of 'points'

_A_u_t_h_o_r(_s):

     Pan Du

_S_e_e _A_l_s_o:

     'peakDetectionCWT', 'identifyMajorPeaks'

_E_x_a_m_p_l_e_s:

             data(exampleMS)
             SNR.Th <- 3
             peakInfo <- peakDetectionCWT(exampleMS, SNR.Th=SNR.Th)
             majorPeakInfo = peakInfo$majorPeakInfo
             peakIndex <- majorPeakInfo$peakIndex
             plotPeak(exampleMS, peakIndex, main=paste('Identified peaks with SNR >', SNR.Th)) 

