idiograb              package:idiogram              R Documentation

_i_d_i_o_g_r_a_b

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

     'idiograb' reads the position of the graphics pointer when the
     (first) mouse button is pressed. 'idiogram' also reads a _second_
     position of the graphics pointer after another mouse button press.
     The two points selected are used to define a diagonal line from
     which a bounding box will be constructed. It then retrieves the
     gene identifiers of the points that lie within the bounding box.

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

     idiograb(idio, show.box = TRUE, brush = NULL, ...)

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

    idio: point coordinates and cooresponding gene identifiers from an
          'idiogram' function call

show.box: boolean. if TRUE, a box is drawn showing the selected region

   brush: a color to highlight the points within the selected region

     ...: additional plotting paramters passed to 'points' to modify
          the points within the selected region

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

     Coordinates can be passed in a plotting structure (a list with
     'x', 'y', and 'labels' components). Typically this is generated
     from a call to 'idiogram'.

     The points selected are used to define the top-left and
     bottom-right locations _or_ the bottom-left and top-right
     locations for bounding box. These locations can be selected in any
     order. A character vector of the labels of all the points that lie
     within the selected region is returned.

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

     A character vector of gene identifiers

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

     Karl Dykema <karl.dykema@vai.org>

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

     'idiogram'

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

     data(idiogramExample)
     ip <- idiogram(colo.eset@exprs[,1],ucsf.chr,chr="1")
     if(interactive()) idiograb(ip,brush="red")

