sg_relative_size.Rd
Change nodes size depending to their degree (number of relationships)
sg_relative_size(sg, initial = 1)
An object of class sigmajsas intatiated by sigmajs.
sigmajs
Initial node size.
nodes <- sg_make_nodes(50) edges <- sg_make_edges(nodes, 100)#> Warning: Argument `n` is deprecated sigmajs() %>% sg_nodes(nodes, id, label) %>% # no need to pass size sg_edges(edges, id, source, target) %>% sg_relative_size()