PlotMST {GeoRange} | R Documentation |
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
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
w<-MSTDist(longs=c(23,78,-23,56),lats=c(21,4,55,-3))
PlotMST(MSTCalc=w)
[Package GeoRange version 0.1.0 Index]