msn2Shape {fossil} | R Documentation |
A helper function to convert a minimum spanning tree or network into shapefile format.
msn2Shape(msn, lat, dist = NULL)
msn |
a minimum spanning tree or network (binary matrix) |
lat |
a matrix or data frame with the latitude and longitude of the sites as the first two columns respectively |
dist |
Optional argument to include distance values in final output; if wanted, a distance matrix (lower triangle) with the localities in the same order as in the MSN are required |
This function will take a minimum spanning tree or network object, along with
the georeferenced locations of the sites, and convert it into a shapefile for
use with GIS. The msn
argument requires a minimu spanning tree or
network object, and the lat argument requires some form of location for each
of the points, typically a matrix with latitude and longitude columns
respectively.
A shapefile which can be output using the write.shapefile
function for
use with a GIS program.
Matthew Vavrek
~put references to the literature/web site here ~
lats2Shape
for a function to convert a lat/long table to
a shapefile
##add example for this function