htmlMaker R (and S-Plus) code to generate webpages with plots

This is an R package to generate html code for webpages, especially for batch jobs where R is run in background mode. This is a basic program to get simple webpages with graphs, including simple clickable graphs, it is not a web design tool. You will need to know some html to do anything beyond the simplest webpages. These webpages are static html, no java or javascript is used.

To work under R in interactive mode, R in batch mode, and S-Plus, the package now requires an argument to tell which method to use to produce plots. The sample routines below assume you are running R in interactive mode.

WARNING: Netscape Navigator (6.2 and 7.0) does NOT work correctly with clickable images: (1) it does not process multiple images with maps correctly, (2) it does not display the alt=... text, except on the first graph on a webpage, and (3) it does not follow the href= link. Internet Explorer (5.5 and 6.0) does work correctly.

There is terse documentation included in the source file htmlMaker.R below. Also, see the source files and pages of output generated below.

brown red green blue cyan pink






You clicked on the brown bar.

You clicked on the red bar.

You clicked on the green bar.

You clicked on the blue bar.

You clicked on the cyan bar.

You clicked on the pink bar.

You can have links go to different places, including different webpages





Download source or view examples

Description File
R code for htmlMaker htmlMaker.R
R code to generate the four sample pages below htmlMakerTest.R
Simplest plots page1.html
Clickable plots page2.html
plot options - color, tables page3.html
General plots (3-D, multipanel, etc.) page4.html
R code to generate this page htmlMakerWebpage.R

John Nolan's homepage

Please send me e-mail if you find this package useful: jpnolan@american.edu