View source: R/fct_graph_helpers.R
graph_to_R_code | R Documentation |
Takes in a graph dataframe, returns the graph formatted as R code
graph_to_R_code(graph)
graph |
A graph df, like that returned by gfpop::graph() |
a string corresponding to the code that, when run, produces the given graph
graph <- gfpop::graph(type = "std") graph_to_R_code(graph)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.