Skip to contents

Scale factors

Usage

pipe_scale_links(
  graf,
  field = "link_id",
  fixed = NULL,
  fun = "count",
  value = NULL
)

Arguments

graf

A mapfile representing a causal map. A mapfile is a tidygraph, which consists of a table of edges linked to a table of nodes, with an optional additional table of statements. In this package, nodes are called `factors` and edges are called `links.`

field

A numerical field in the link table which will control the scale (the width of the links).

Value

A mapfile with a new or overwritten column `width`in the link table varying between .2 and 1.