Skip to contents

Plot Threshold on Speed Chart

Usage

plot_threshold(plot_speed, selected_speed, state_threshold, threshold = NULL)

Arguments

plot_speed

List, what the plot_speed function returns.

selected_speed

Character indicating the selected speed threshold (c("ALL",MORE THAN 40KM/H", "MORE THAN 30KM/H", "MORE THAN 20KM/H", "MORE THAN 10KM/H")).

state_threshold

Character indicating the state of the threshold ("auto" or "manual").

threshold

Numeric value representing the manual threshold if state_threshold is "manual".

Value

A ggplot2 chart with the speed plot and threshold line.