Description Usage Arguments Examples
Uses maps from the 'maps' package as a background.
1 | plotGraphLines(graph_lines, line_col = "red", map = "county")
|
graph_lines |
A list with each entry containing the coordinates of a minimum spanning tree's edge to plot |
line_col |
The color the lines should be plotted. Defaults to red. |
map |
The map from the ‘maps' package to draw as the background. Defaults to ’county'. |
1 2 3 4 5 | latlon <- getLatLon(c('New York, New York', 'Boston, MA'))
dist_mat <- getDistMat(latlon)
mst <- getMST(dist_mat)
graph_lines <- getGraphLines(mst, latlon)
plotGraphLines(graph_lines)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.