imageMap {prada}R Documentation

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

Description

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

Usage

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

Arguments

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.

Details

See example.

Value

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

Author(s)

Wolfgang Huber http://www.dkfz.de/abt0840/whuber

See Also

plotPlate, writeLines

Examples

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

[Package Contents]