[R] how to draw graphs within clickable hyperlink

Barry Rowlingson B.Rowlingson at lancaster.ac.uk
Fri Mar 4 17:01:25 CET 2005


Damian Betebenner wrote:
> Hu,
> 
> I've found two methods of doing this---1 in R and the other in S-Plus.

Here's something I did a few years ago that lets you create PNG files 
and an HTML imagemap

http://www.maths.lancs.ac.uk/Software/Imagemap/

  It might be tricky to add clickable areas to plots drawn by other 
functions and packages, since you dont know exactly where the points 
are, but with access to the source code that should be fixable.

  For example, suppose you wanted to make the box of a boxplot 
clickable, you need to know the coordinates of the box on the graphics 
device. If the return value and parameters to boxplot dont give this 
information, you'll have to work it out.

  Baz




More information about the R-help mailing list