View source: R/get_strength_node_size.R
get_strength_node_size | R Documentation |
Get new node size for graph based on strength centrality
get_strength_node_size(Centrality, scale_add = 0.5, scale_times = 2.5)
Centrality |
The output of function |
scale_add |
The basic size added to original size, in case of the node is too small |
scale_times |
The scale times of the original size in case the node is too small |
a named vector containing the new sizes for each node.
data("mtcars")
network = quickNet(mtcars)
centrality = Centrality(network)
vsize = get_strength_node_size(centrality)
quickNet(mtcars, vsize = vsize)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.