scale_graph {sgraph}R Documentation

Scale weights

Description

Use non-centered scaling, multiplied by a constant, and set a lower bound constant.

Usage

scale_graph(
  weights,
  upper_bound_mult = if (length(weights) > 1000) 2 else 4,
  lower_bound_const = if (length(weights) > 1000) 2 else 3
)

Arguments

weights

Either nodes or links weights vector

upper_bound_mult

Constant to multiply weights by after scaling. Use to set an upper bound for weights.

lower_bound_const

Constant to set a lower bound for weights. All weights below will be set to lower bound.

Value

Weights vector


[Package sgraph version 1.0.0 Index]