Learn R Programming

popgraph (version 1.4)

to_kml: Converts population graph to KML file

Description

This function takes a population graph that has been 'decorated' with sufficient spatial data to make a KML file from it for viewing in GoogleEarth.

Usage

to_kml(graph, file)

Arguments

graph
A popgraph object.
file
The location to save the kml to (if not passed, it returns it)

Value

The text of the KML file to be saved or viewed in the appropriate editor.