gt_save.Rd
Save the graph to file.
gt_save(gt, file = "graphTweets.graphml", format = "graphml", ...)
gt | An object of class |
---|---|
file | File name including extension ( |
format | Format file format, see write_graph. |
... | Any other argument to pass to write_graph. |
# NOT RUN { # simulate dataset tweets <- data.frame( text = c("I tweet @you about @him", "I tweet @me about @you"), screen_name = c("me", "him"), retweet_count = c(19, 5), created_at = c(Sys.time(), Sys.time() + 15000), status_id = c(1, 2), stringsAsFactors = FALSE ) tweets %>% gt_edges(text, screen_name, "created_at") %>% gt_nodes(TRUE) %>% gt_dyn() %>% gt_save() # }