plot.dynet_path_network: Draw a path network

View source: R/plot.R

plot.dynet_path_networkR Documentation

Draw a path network

Description

The hops used by a set of optimal temporal paths, as a node-link diagram with Dynet's rendering defaults; any cograph::splot() argument overrides them.

Usage

## S3 method for class 'dynet_path_network'
plot(x, palette = "okabe", ...)

Arguments

x

A result from path_network().

palette

Palette specification, as in plot.dynet().

...

Passed to cograph::splot().

Value

x, invisibly.

Examples

dn <- dynet(school_contacts)
routes <- paths(dn, from = "Ana")
route_network <- path_network(routes)
plot(route_network, layout = "oval")

Dynet documentation built on Oct. 7, 2026, 5:08 p.m.