View source: R/trajectory_display.R
| plot.avltrajectory_group | R Documentation |
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().
## S3 method for class 'avltrajectory_group'
plot(x, ...)
## S3 method for class 'avltrajectory_single'
plot(x, ...)
x |
A trajectory object. |
... |
Other parameters (not used). |
A ggplot2 object.
# 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]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.