PlotMST: Plots the minimum spanning tree of a set of coordinates

Description Usage Arguments Value Note Examples

View source: R/PlotMST.R

Description

Plots the minimum spanning tree of a set of coordinates

Usage

1
2
PlotMST(MSTCalc, color = "black", symbol = 16, xlimit = "NA",
  ylimit = "NA")

Arguments

MSTCalc

- Output from the MSTDist function

color

- Color of the lines connecting point

symbol

- Symbol value for the pch graphical parameter for plotting coordinates

xlimit

- Array of values denoting the x-axis limits

ylimit

- Array of values denoting the y-axis limits

Value

Plots a minimum spanning tree

Note

If the xlimit and ylimit parameters are left to their default values the axis ranges are based on the minimum and maximum values of the coordinates This function does not account for the possibility of points crossing the prime meridian and in cases where this occurs lines will cut across the entire plot

Examples

1
2
w<-MSTDist(longs=c(23,78,-23,56),lats=c(21,4,55,-3))
PlotMST(MSTCalc=w)

GeoRange documentation built on June 20, 2017, 9:03 a.m.

Related to PlotMST in GeoRange...