plot.dynet_path_trajectories: Plot path trajectories

View source: R/path-trajectory.R

plot.dynet_path_trajectoriesR Documentation

Plot path trajectories

Description

A method wrapper so plot() works on the result directly. It draws exactly what plot_path_trajectories() draws; that function remains the place where the appearance arguments are documented.

Usage

## S3 method for class 'dynet_path_trajectories'
plot(x, ...)

Arguments

x

A dynet_path_trajectories result.

...

Passed to plot_path_trajectories().

Value

A ggplot object.

Examples

dn <- dynet(school_contacts)
routes <- paths(dn, from = "Ana")
trajectories <- path_trajectories(routes)
plot(trajectories)

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