Description Usage Arguments Value Examples
Plot a directed graph with Fruchterman-Rheingold layout algorithm
1 2 3 4 |
.graph |
a tbl_graph object with a node attribute eigen_centr_year |
.save_plot |
FALSE by default. Select TRUE if plot should be saved |
.filename |
the name of the saved plot. Don't forget to specify the device, e.g. '.pdf' |
a plot and, if .save_plot == TRUE, a file
1 2 3 4 5 6 7 8 | g <- create_example_graph()
nodes.with.centr <- compute_eigen_centr_year(g)
g2 <- g %>%
tidygraph::activate(nodes) %>%
tidygraph::left_join(nodes.with.centr)
plot_directed_graph_with_fr(g2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.