Learn R Programming

GeoRange (version 0.1.0)

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

Description

Plots the minimum spanning tree of a set of coordinates

Usage

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

Examples

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

Run the code above in your browser using DataLab