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[,1],ucsf.chr,chr="1")
     if(interactive()) idiograb(ip,brush="red")

