This project consists of an R program
xyplot_js.R that writes a simple scatter plot (similar to the R function
plot) in html format. The plot it writes is interactive: if the user moves the mouse over a point, the point changes color and a small popup label appears indicating its index and coordinates. (The idea is to allow the user to examine outliers or other interesting points.)
The project includes the R program itself, and four supporting files: The bulk of the output file cut into three "template" parts (e.g.
plot_template_part1.html, and a stylesheet
styles.css. The R program is designed to read the three template parts of the html file, and to write the specific material (data etc) for the plot to be written in between the template parts. This is designed to keep the R program as simple as possible (most of the output html is "pre-written" in the template files).
This repository includes a file,
faithful.html that shows what typical output for this program looks like. It was written by the R program.