Skip to contents

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)