plotGraphLines: Plots edges of minimum spanning tree.

Description Usage Arguments Examples

Description

Uses maps from the 'maps' package as a background.

Usage

1
plotGraphLines(graph_lines, line_col = "red", map = "county")

Arguments

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'.

Examples

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)

lboxell/geomst documentation built on May 20, 2019, 10:24 p.m.