View source: R/plot_networks.R
plot_networks | R Documentation |
An easy way to plot your networks by using the columns created by the different function of networkflow.
plot_networks( graphs, x = "x", y = "y", cluster_label_column = "cluster_label", node_size_column = "node_size", color_column = "color", color_networks = FALSE, color = NULL, print_plot_code = FALSE )
graphs |
A tibble graph from tidygraph or a list of tibble graphs. |
x, y |
The columns of your tibble graph or list of tibble graphs with the x and y coordinates of your nodes (for instance, the coordinates produce by layout_networks()). |
cluster_label_column |
The values of the column are taken to be displayed as labels. By default, "cluster_label", as it is the default name of the column created with name_clusters(). But you may also use the column produced with add_clusters(). |
node_size_column |
The column with numeric values to be used for the size of nodes. By default, "node_size",
as the column created by build_dynamic_networks()
or build_network() when |
color_column |
The column with the colors associated to the categories of |
color_networks |
If no color has been set for the categories of |
color |
If |
print_plot_code |
Set to |
If you have not used prepare_label_networks(),
the function will be automatically used to produce coordinates to each category of
cluster_label_column
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.