gen_visnetwork: Generate visnetwork

Description Usage Arguments Examples

View source: R/visnetworks.r

Description

Generate visnetwork

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
gen_visnetwork(
  network_df,
  threshold_field = n_pages_agg,
  threshold_value = 0,
  size_field = NULL,
  tooltip_field = "title",
  width = "1000",
  height = "600",
  hierarchical = FALSE,
  igraph_init = FALSE,
  seed = 123,
  smooth_edges = TRUE,
  ...
)

Arguments

network_df

dataframe to turn into a network

threshold_field

field to be used to prune the network

threshold_value

value to be used in the 'threshold_field' to prune the network

size_field

field to use as the network size

tooltip_field

field to use as hover text on the nodes

hierarchical

should the nodes be laid out in a heirachical way

igraph_init

use igraph package to initialise positions - faster but uglier

seed

set the random seed for layout consistency

smooth_edges

should edges be rendered as bezier curves - slower but results in nicer layout.

...

additional arguments passed to the call to visNetwork

Examples

1
2
3
4
gen_visnetwork(
   network_df = taxonomy_df_lower_threshold,
   hierarchical = TRUE 
)

mattmalcher/gov.uk.taxonomy documentation built on Jan. 25, 2020, 12:45 a.m.