export.dot | R Documentation |
A crude exporter for saving out a network in the Graphviz .dot format. https://graphviz.org/content/dot-language
export.dot(x, file = "", coords = NULL, all.dyads = FALSE,
vert.attrs = NULL, edge.attrs = NULL)
x |
The network object to be exported |
file |
The file name where network should be saved |
coords |
Optional node coordinates to include |
all.dyads |
FALSE, a numeric value, or a symetric matrix of distances providing the desired lengths for all dyads.. If numeric, entries are written out for all possible dyads in the network, and the numeric value will be used to fill in the values for all the dyads in the matrix not linked by an edge (see |
vert.attrs |
optional character vector listing the names of any vertex attributes of the network that should be included as attributes of the nodes in the Graphviz dot file. (e.g. 'label', 'width') |
edge.attrs |
optional character vector listing the names of any edge attributes of the network that should be included as attributes of edges in the Graphviz dot file. (e.g. 'weight','penwidth') |
A crude exporter for saving out a network in the Graphviz .dot format. https://graphviz.org/content/dot-language
Returns nothing but creates a file in .dot format: https://graphviz.org/content/dot-language
This is still a partial implementation focusing on edges, edge wights, and node coordinates in order to pass the information to graphViz to use it as an external layout engine rather than a renderer.
Skye Bender-deMoll
https://graphviz.org/content/dot-language
library(network)
net <- network.initialize(5)
net[1,] <-1
net[2,3] <-2
export.dot(net,file="testNet.dot")
# clean up file afterwords (just for testing)
file.remove("testNet.dot")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.