Adds trajectories in form of arrows to a surface plot.

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

Arguments

object

An object of class spata2.

ids

Character vector or NULL. If character, specifies the IDs of the image annotations of interest. If numeric, the image annotations are picked by number. If NULL, all image annotations are included - subsequent selection with tags and test is possible.

arrow

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

...

Additional arguments given to ggplot2::geom_segment().

trajectories

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

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.