Learn R Programming

popgraph (version 1.4)

to_html: Converts population graph to html file for interactive viewing

Description

This function takes a population graph that has been 'decorated' with sufficient spatial data to make a html file that uses the D3 visualization javascript mateirals to view it interactively.

Usage

to_html(graph, file)

Arguments

graph
A popgraph object.
file
The path to the html file to be saved. If not given then the html text is returned by the function.

Value

The text of the html file to be saved or viewed in the appropriate browser.