| to_graphml | R Documentation |
Writes a bibnets edge list (and optional node attributes) to a GraphML file using pure base R — no XML package required.
to_graphml(edges, nodes = NULL, file = NULL, directed = FALSE)
edges |
A data frame with at least |
nodes |
Optional data frame of node attributes with an |
file |
File path to write. If |
directed |
Logical. Default |
If file = NULL: GraphML as a character string. Otherwise writes
the file and returns the path invisibly.
data(biblio_data)
edges <- keyword_network(biblio_data)
xml <- to_graphml(edges)
cat(substr(xml, 1, 300))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.