animate_infection_network: Creates interactive html file with d3 network animation

Description Usage Arguments Details

View source: R/animate-infection-network.R

Description

animate_infection_network takes output of first_infection_list and produces a network animation of the outbreak using d3. Output is saved to file as an html page

Usage

1
2

Arguments

first_infection_list

Infection list outputted by first_infection_list.

file

Full file path where html is to be saved to.

year

Year the outbreak relates to for title plotting. Default = NULL

detach

Boolean that detaches the packages loaded within the library. Deafult = FALSE, i.e. packages remain in Global Environment.

Details

N.B. Function


OJWatson/paper documentation built on Sept. 25, 2017, 3:31 a.m.