Plots speed over time, with intervals of fast and/or slow speed highlighted.
# 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"))), ...)
An object of class "SpeedIntervals", as created by
TrajSpeedIntervals
.
The colour of the horizontal line
plotted at the "slower than" or "faster than" speed. Specify NULL
to
prevent the line from being plotted.
Colour of the highlight rectangles.
plotting parameters with useful defaults.
Additional arguments are passed to plot
.