I have speed and x,y coordinates of multiple vehicles. To study the behavior of drivers, I want to plot the position of each vehicle using the x and y coordinates that update every 1/60th of a second.
I can do this in
shiny by using the
sliderInput to change the current time frame that updates the position plot. An example is provided in the following image:
In the image above, the large points and the vertical line move whenever I move the slider. However, since there are thousands of time frames for a given vehicle (as seen in the slider), it is difficult to control the slider to reach a certain location.
Is it possible in
shiny to click and drag one of the large points on the plot over the observed trajectory? This way I'd know where exactly the vehicle was and its speed. If not in R, is there any other plotting option?