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)) 

