sg_relative_size

0th

Percentile

Relative node sizes

Change nodes size depending to their degree (number of relationships)

Usage
sg_relative_size(sg, initial = 1)
Arguments
sg

An object of class sigmajsas intatiated by sigmajs.

initial

Initial node size.

Aliases
  • sg_relative_size
Examples
# NOT RUN {
nodes <- sg_make_nodes(50)
edges <- sg_make_edges(nodes, 100)

sigmajs() %>%
  sg_nodes(nodes, id, label) %>% # no need to pass size
  sg_edges(edges, id, source, target) %>% 
  sg_relative_size()

# }
Documentation reproduced from package sigmajs, version 0.1.3, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.