Learn R Programming

BioTrajectory (version 1.1.0)

plot.trajectory: Plot the Trajectory

Description

Plots the trajectory by displaying the `x` and `y` coordinates as points on a 2D plot. Optionally, you can add a line connecting the points.

Usage

# S3 method for trajectory
plot(x, ..., stepSize = 0)

Value

A plot displaying the trajectory.

Arguments

x

A `Trajectory` object to plot.

...

Other parameters to be passed.

stepSize

An integer specifying the interval for plotting segments of the trajectory. If set to 0, the entire trajectory is plotted. Default is 0.