plot.avltrajectory_group: Quickly plot an AVL trajectory

View source: R/trajectory_display.R

plot.avltrajectory_groupR Documentation

Quickly plot an AVL trajectory

Description

This function generates a quick plot of a single or grouped trajectory object. Using the trajectory function, the entire trajectory will be plotted at a temporal resolution of 10 seconds. For grouped trajectories, a maximum of 50 trips will be plotted. For more control over plotting and formatting, see plot_trajectory().

Usage

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

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

Arguments

x

A trajectory object.

...

Other parameters (not used).

Value

A ggplot2 object.

Examples

# Get input data
lineE_traj_grouped <- new_transittraj_data("get_trajectory_fun")
lineE_traj_singles <- new_transittraj_data("get_trajectory_fun_single")

# Plot: Grouped trajectory object
plot(lineE_traj_grouped)

# Plot: Single trajectory object
plot(lineE_traj_singles[[2]])

transittraj documentation built on Nov. 2, 2026, 1:10 a.m.