View source: R/ExplodeLayoutBasic.R
explode_coordinates | R Documentation |
Takes the nodelist of a network and return an updated nodelist with the exploded coordinates.
explode_coordinates(nodelist, radius = 1)
nodelist |
A nodelist is a dataframe including at least 4 columns: Label, X, Y, Cluster. Label is the node ID. They must be unique character strings. X and Y are the original coordinates. Cluster is the node clustering membership. They must be integers ranging from 1 to the number of clusters. |
radius |
The radius of the used to explode the clusters, which defaults to 1. |
A nodelist with new node layout coordinates generated from the algorithm. This is a new dataframe with 4 colums: Label, newX, newY, Cluster.
exploded_coords=explode_coordinates(example_nodelist,radius=1.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.