massvector              package:mscalib              R Documentation

_C_o_n_s_t_r_u_c_t_o_r

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

     massvector extends matrix

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

     massvector(info,masses,tcoor)

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

    info: a unique identifier for the list.

  masses: a matrix or a array with masses. First column must contain
          masses.

   tcoor: a array of length two if integer sample support coordinates.

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

     The class massvector keeps the masses and their intensities in a
     matrix.  It stores additional attributes like the coordinates of
     the mass spectrometric sample on the support.  It also stores a
     identifier of the massvector.

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

     Witold Wolski wolski@molgen.mpg.de

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

      massvector("hello march",NULL)
      massvector("hello march",1:100)
      massvector("hello march",cbind(1:10,10:1))
      tmp<-cbind(1:10,1:10)
      colnames(tmp)<-c("mass","test")
      rr<-massvector("hello march",tmp)
      rr2<-massvector("hello bart",cbind(1:12,1:12))
      # plot functions for massvector
      plot(rr)
      hist(rr)
      summary(rr)
      image(rr)
      info(rr)
      # setting new masses
      mass(rr)
      mass(rr,1:10)
      peaks(rr,cbind(1:10,11:20))
      # plotting with masses
      data(mv1)
      data(mv2)
      plot(mv1,mv2)
      image(mv1  ,mv2)
      summary(mv1)
      print(mv1)
      hist(mv1)
      plot(mv1)
      image(mv1,mv2,error=199,ppm=FALSE)

