uses visNetwork to produce an interactive network plot based on the links and edges dataframes
getVNPlotObject(
nodes,
edges,
addLegend = FALSE,
addExport = TRUE,
figType = "png",
mainTitle = NULL,
subTitle = NULL,
layoutSeed = NA,
scaleNodes = FALSE,
scaleEdges = FALSE,
microbeCol = "gold",
resourceCol = "lightblue",
productionCol = "magenta",
uptakeCol = "darkgrey",
figWidth = 700,
figHeight = 700
)data frame or a list with nodes information. Needs at least column "id". See visNetwork::visNodes
data frame or a list with edges information. Needs at least columns "from" and "to". See visNetwork::visEdges
Logical. If true adds a legend to plot. Default is FALSE
Logical. If true adds button to export fig from html plot
Type of export. One of "png" (default), "jpeg" or "pdf". Puts a button on the html plot
Optional list containing "text" (string for plot title) and "style" (e.g. 'font-family:Times','font-family:Arial' etc).
Optional list containing "text" (string for plot subtitle) and "style" (e.g. 'font-family:Times','font-family:Arial' etc)
: NA. Random seed for the layout of the plot. To get identical plots set this to a number
Logical. If true the node sizes differ with concentration (in moles for resources and mass or concentration for microbes)
Logical. If true the edge sizes differ with the amount of moles flowing through them
String for microbe node colour. Default is 'orange'
String for resource node colour. Default is 'lightBlue'
String for production edge colour. Default is 'darkGrey'
String for uptake edge colour. Default is 'magenta'
numeric value to control size of plotting window. Default is 700
numeric value to control size of plotting window. Default is 700
a visNetwork object that can be shown using print() function.