Skip to contents

Plot trajectories from a Tracks (overlay or faceted)

Usage

gg_traj(
  x,
  colour = NULL,
  linetype = NULL,
  alpha = NULL,
  size = 0.6,
  facets = NULL,
  coord = c("polar", "cartesian"),
  geom = c("path"),
  thin = 1L,
  ncol = NULL,
  color = NULL
)

# S4 method for class 'Tracks'
gg_traj(
  x,
  colour = NULL,
  linetype = NULL,
  alpha = NULL,
  size = 0.6,
  facets = NULL,
  coord = c("polar", "cartesian"),
  geom = c("path"),
  thin = 1L,
  ncol = NULL,
  color = NULL
)

Arguments

x

Tracks

colour, color, linetype, alpha, size

Optional column names (strings) mapped to aesthetics. `color` is the American-spelling alias for `colour`.

facets

NULL, a single string, or a character vector of columns to facet by

coord

"polar" (unit circle) or "cartesian"

geom

"path" or "point" (or both, as c("path","point"))

thin

Keep every n-th point per id (for very long tables)

ncol

Number of facet columns (when faceting)

Value

ggplot object