View source: R/prepare_label_networks.R
prepare_label_networks | R Documentation |
prepare_label_networks()
creates a label column that make it easy to center label around particular clusters on the alluvial graph of intertemporal networks.
prepare_label_alluvial()
prepare_label_networks( graphs, x = "x", y = "y", cluster_label_column = "cluster_label" ) prepare_label_alluvial( alluv_dt = NA, window_column = "window", cluster_label_column = "cluster_label" )
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 column with the cluster label you want to display. By default, "cluster_label", as it is the default name of the column created with name_clusters(). You may also use the cluster identifier created by add_clusters() for simple cluster, or by merge_dynamic_clusters() for inter-temporal clusters. |
alluv_dt |
A data.frame of an alluvial created with networks_to_alluv(). |
window_column |
The column of the alluvial with your time window. By default, "window", as created by networks_to_alluv(). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.