What I'm wondering is, would it be possible to create an HTML file from R ? I will be setting up R to work on the server side, and it will be making an heatmap overlay, and hopefully if it is possible to make an HTML file from R, I can just add in the image and set it up so it will be using Google maps, using the heatmap overlay.
This is the code I'm looking at and in there the overlay is given two coordinates, North east and south west, along with a center to specify where the map is.
In R when the overlay has been created, I can also save the coordinates, north east and south west along with the center of where the map should go. But what if I don't make the HTML file in R? How can I get these coordinates and delete previous overlay and place the new one on top and update it with the new coordinates?