vis_epiflows: Visualise epidemic flows using visNetwork

View source: R/vis_epiflows.R

vis_epiflowsR Documentation

Visualise epidemic flows using visNetwork

Description

This function shows flows between locations using a dynamic network visualisation implemented in the package visNetwork, calling the function epicontacts::vis_epicontacts() of the epicontacts package. The thickness of arrows/edges is proportional to the corresponding flows.

Usage

vis_epiflows(x, arrows = TRUE, max_width = 10, ...)

Arguments

x

An epiflows object.

arrows

A logical indicating if arrows should be used to show directionality of the flows.

max_width

A single number indicating the maximum width of an edge (corresponding to the largest flow).

...

Further arguments passed to epicontacts::vis_epicontacts()

Author(s)

Thibaut Jombart


epiflows documentation built on April 10, 2023, 5:06 p.m.