Description Usage Arguments Value Examples
write.tgf.folder
stores the graphs underlying the maps of a conceptmaps object into a folder using the "Trivial Grpah Format" (TGF).
The function calls write.tgf
for each of the maps of a conceptmaps object. The files will be named "1.tgf", "2.tgf" and so on.
1 | write.tgf.folder(maps, folder, translation = NULL)
|
maps |
A conceptmap object. |
folder |
The location where the files should be stored. The folder is created, if necessary. |
translation |
See |
-
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
#Create concept maps from three random graphs
require("igraph")
g1 = set.vertex.attribute(erdos.renyi.game(5, 0.7, type="gnp"), "name", value=1:5)
g2 = set.vertex.attribute(erdos.renyi.game(5, 0.7, type="gnp"), "name", value=1:5)
g3 = set.vertex.attribute(erdos.renyi.game(5, 0.7, type="gnp"), "name", value=1:5)
#Create conceptmaps object from three conceptmap objects
simple_cms = conceptmaps(list(conceptmap(g1), conceptmap(g2), conceptmap(g3)))
write.tgf.folder(simple_cms, "~/cmaps")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.