plot_directed_graph_with_fr: Plot a directed graph with Fruchterman-Rheingold layout...

Description Usage Arguments Value Examples

Description

Plot a directed graph with Fruchterman-Rheingold layout algorithm

Usage

1
2
3
4
plot_directed_graph_with_fr(.graph, .save_plot = FALSE,
  .filename = "directed_graph_with_fr.pdf", .node_labels = FALSE,
  .edge_labels = FALSE, .remove_isolates = TRUE,
  .remove_multiple_edges = FALSE)

Arguments

.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'

Value

a plot and, if .save_plot == TRUE, a file

Examples

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)

Framus94/HierarchiesAndCareers documentation built on June 5, 2019, 8:52 a.m.