Learn R Programming

trajr (version 1.0.0)

plot.TrajSpeedIntervals: Plot method for trajectory speed intervals

Description

Plots speed over time, with intervals of fast and/or slow speed highlighted.

Usage

# S3 method for TrajSpeedIntervals
plot(x, slowerThanColour = "red",
  fasterThanColour = "green", highlightColor = "#0000FF1E",
  xlab = sprintf("Time (%s)", TrajGetTimeUnits(attr(x, "trajectory"))),
  ylab = sprintf("Speed (%s/%s)", TrajGetUnits(attr(x, "trajectory")),
  TrajGetTimeUnits(attr(x, "trajectory"))), ...)

Arguments

x

An object of class "SpeedIntervals", as created by TrajSpeedIntervals.

slowerThanColour, fasterThanColour

The colour of the horizontal line plotted at the "slower than" or "faster than" speed. Specify NULL to prevent the line from being plotted.

highlightColor

Colour of the highlight rectangles.

xlab, ylab

plotting parameters with useful defaults.

...

Additional arguments are passed to plot.

See Also

TrajSpeedIntervals