imageMap                package:prada                R Documentation

_W_r_i_t_e _a_n _H_T_M_L _I_M_G _t_a_g _t_o_g_e_t_h_e_r _w_i_t_h _a _M_A_P _i_m_a_g_e _m_a_p.

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

     Write an HTML IMG tag together with a MAP image map.

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

       imageMap(con, imgname, coord, tooltips, url, target="extra")

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

     con: Connection (see argument 'con' of 'writeLines').

 imgname: Character. Name of the image file, as it is to appear in the
          HTML output.

   coord: Matrix with 4 columns. Each row specifies the corners of a 
          rectangle within the image.

tooltips: Character of length 'nrow(coord)'.

     url: Character of length 'nrow(coord)'.

  target: Character. Name of the target browser window.

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

     See example.

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

     The function is called for its side effect, which is writing text
     into the connection 'con'.

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

     Wolfgang Huber <URL: http://www.dkfz.de/abt0840/whuber>

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

     'plotPlate',  'writeLines'

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

     imageMap(stdout(), "myimage.jpg", coord=matrix(1:8,nrow=2), 
        url=c("a","b"), tooltips=c("TT1", "TT2"))

