get_strength_node_size: Get new node size for graph based on strength centrality

View source: R/get_strength_node_size.R

get_strength_node_sizeR Documentation

Get new node size for graph based on strength centrality

Description

Get new node size for graph based on strength centrality

Usage

get_strength_node_size(Centrality, scale_add = 0.5, scale_times = 2.5)

Arguments

Centrality

The output of function Centrality

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

Value

a named vector containing the new sizes for each node.

Examples

data("mtcars")
network = quickNet(mtcars)
centrality = Centrality(network)
vsize = get_strength_node_size(centrality)

quickNet(mtcars, vsize = vsize)

LeiGuo0812/quickNet documentation built on May 1, 2024, 10:42 p.m.