Adds spatial trajectories in form of arrows to a surface plot.

ggpLayerSpatialTrajectories(
  object = "object",
  ids,
  arrow = ggplot2::arrow(length = ggplot2::unit(x = 0.125, "inches")),
  ...
)

Arguments

object

An object of class SPATA2 or, in case of S4 generics, objects of classes for which a method has been defined.

ids

Character vector. The IDs of the trajectories that should be plotted.

arrow

A list of arguments given to ggplot2::arrow(). Based on which the trajectories are plotted.

...

Additional arguments given to ggplot2::geom_segment().

Value

ggpLayer*()-functions return lists of ggproto objects that can be added to ggplots via the + operator. In most of the cases they are supposed to be added to plots created with the plotSurface*() family.