overhauled network-plotfuncs.r to work with data frames rather than adjacency matrices