plotLocation              package:affy              R Documentation

_P_l_o_t _a _l_o_c_a_t_i_o_n _o_n _a _c_e_l _i_m_a_g_e

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

     Plots a location on a previously plotted cel image. This can be
     used to locate the physical location of probes on the array.

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

     plotLocation(x, col="green", pch=22, ...)

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

       x: a `location'. It can be obtained by the method of 'AffyBatch'
          'indexProbes', or made elsewhere (basically a location is
          nrows and two columns array. The first column corresponds to
          the x positions and the second columns corresponds to the y
          positions of n elements to locate)

     col: colors for the plot

     pch: plotting type (see function 'plot')

     ...: Other parameters passed to the function 'points'

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

     Laurent

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

     'AffyBatch'

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

     if (require(affydata)) {
       data(Dilution)

       ## image of the celfile
       image(Dilution[, 1])

       ## genenames, arbitrarily pick the 101th
       n <- geneNames(Dilution)[101]

       ## get the location for the gene n
       l <- indexProbes(Dilution, "both", n)[[1]]
       ## convert the index to X/Y coordinates
       xy <- indices2xy(l, abatch=Dilution) 

       ## plot
       plotLocation(xy)
     }

