Description Usage Arguments Details Value Author(s) Examples
View source: R/create_network.R
Links events and full names for plotting D3 networks
1 | create_network(x, highlight)
|
x |
baptism and marriage records from |
highlight |
assign names matching pattern to group 2 |
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).
A list with nodes and links
Chris Stubben
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.