| ox_save_graphml | R Documentation |
Writes the graph to a GraphML file compatible with OSMnx / NetworkX / Gephi.
Edge geometry is preserved losslessly as a WKT attribute, so the graph
round-trips through ox_load_graphml().
ox_save_graphml(g, path)
g |
An osm_graph. |
path |
Output |
path, invisibly.
g <- example_osm_graph()
f <- tempfile(fileext = ".graphml")
ox_save_graphml(g, f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.