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

Description Usage Arguments Value Note Examples

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)

Example output

Warning messages:
1: In min(c(NA_real_, NA_real_, NA_real_, NA_real_), na.rm = TRUE) :
  no non-missing arguments to min; returning Inf
2: In min(c(NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_,  :
  no non-missing arguments to min; returning Inf
3: In min(c(NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_,  :
  no non-missing arguments to min; returning Inf

GeoRange documentation built on May 1, 2019, 8:03 p.m.

Related to PlotMST in GeoRange...