print.trajectory: Print trajectory Objects

View source: R/print.trajectory.R

print.trajectoryR Documentation

Print trajectory Objects

Description

Pretty formatting for trajectory objects.

Usage

## S3 method for class 'trajectory'
print(x, obs = 5L, ...)

Arguments

x

A trajectory object.

obs

A integer the specifies how many from the beginning and end of the data set to show.

...

Further arguments passed to or from other methods.

Value

Print trajectory objects.

Author(s)

Stephane Guerrier, Mehran Khaghani, and Lionel Voirol

Examples

n <- 100
dat <- cbind(
  seq(from = 0, to = 60 * 60, length.out = n),
  46.204391 * pi / 180 + cumsum(rnorm(n)) / 10^5,
  6.143158 * pi / 180 + cumsum(rnorm(n)) / 10^5,
  375 + cumsum(rnorm(n))
)
traj <- make_trajectory(data = dat, name = "My cool data")
traj

navigation documentation built on May 31, 2023, 8:39 p.m.