Description Usage Arguments Examples
Returns a list containing coordinates for plotting each edge of the minimum spanning tree using the greater circle path between the points.
1 | getGraphLines(mst, latlon, N = 40, intermediate = TRUE)
|
mst |
A minimum spanning tree graph object. |
latlong |
The corresponding latlon points for the mst graph. |
1 2 3 4 | latlon <- getLatLon(c('New York, New York', 'Boston, MA'))
dist_mat <- getDistMat(latlon)
mst <- getMST(dist_mat)
getGraphLines(mst, latlon)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.