Sample Code

The filename script_aux.r contains a R script which is capable of plotting the trajectories contained by a given CSV file using our challenge's format. The function produces a sample-by-sample analysis system which plots the trajectory of each trip over a spatial map (provided by the library RGoogleMaps).

A map is plotted per each trip (which expects the input of any character before advancing to the next trip). This map identifies the starting point by a green dot, while the trip's destination is denoted by a red one. The remaining trajectory is plotted using a gradient between these two colors which gives the indication on the trip's evolution through time.

This plotting schema may ease the problem interpretation by improving your data interpretability (independently on how advanced your solution is).