create_network: Link events and names in baptism and marriage records in the...

Description Usage Arguments Details Value Author(s) Examples

View source: R/create_network.R

Description

Links events and full names for plotting D3 networks

Usage

1
create_network(x, highlight)

Arguments

x

baptism and marriage records from get_records

highlight

assign names matching pattern to group 2

Details

Nodes include names and a group for coloring where group=1 for events and group=0 for people. If any names match the highlight option, these will be assigned group=2. Links include source, target and a value for line thickness where value=5 for family relationships (father, son, etc) and value=1 for witnesses (trulovar or fadder).

Value

A list with nodes and links

Author(s)

Chris Stubben

Examples

1
2
3
4
5
6
7
8
## Not run: 
  s1 <- advanced_search(1638, first="Siv*", last="Lars*", residence="Stub*")
  sivert <- get_records(s1)
  # check full names and fix alternative spellings
  #  sivert$full[sivert$full=="Arnt Elevsen Kjelstad"] <- "Arnt Ellevsen Kjelstad"
  net <- create_network(sivert, highlight="Stub")

## End(Not run)

cstubben/norwayr documentation built on May 14, 2019, 12:25 p.m.