Description Usage Arguments Value Examples
Based on a certain trip specified, this function will be able to plot the velocity of the trip. The different colors show the status of the car, to show whether the car is driving on the freeway or whether it is moving very slowly.
1 | PlotggVelocity(trip)
|
trip |
a dataframe with x and y columns representing the locations of the driver at each second of the trip |
It will return a qplot of the velocity (Moving average over 10 second interval) for the trip.
1 2 | # Velocity plot of a trip taken by a driver
PlotggVelocity(trip=sampleTrip)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.