Description Usage Arguments Value Examples
write.tgf
stores the graph underlying a conceptmap object into a file using the "Trivial Grpah Format" (TGF).
1 |
map |
A conceptmap object. |
file |
The location including filename where the file should be stored. |
translation |
If not NULL, a vector of strings of equal length as the number of concepts used in the concept map. Then, the names given in this vector will be used in the file instead of the original concepts. Can be used, for example, to translate the concepts into a different language for export. |
-
1 2 3 4 5 6 7 8 9 | ## Not run:
#Create concept map from a random graph
require("igraph")
g1 = set.vertex.attribute(erdos.renyi.game(5, 0.7, type="gnp"), "name", value=1:5)
write.tgf(conceptmap(g1), "~/cmap.tgf",
translation = c("Node_1", "Node_2", "Node_3", "Node_4", "Node_5"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.