plot-overland.ipynb
Use GPS data collected with Overland on an iOS device and plot it on a map. The notebook demonstrates both how to use a data set and make a map with all the data points and gives examples on how to focus on certain regions.
This notebook requires you to use the Overland connection to get your GPS data from your iPhone into Open Humans.
This notebook then uses the GPS data to plot your personal movement history using R
.
For a start let's load our required packages:
With that out of the way we can access our Overland data from our Open Humans account. As the GPS records are can grow pretty large, each Year-Month
will get it's own file. The code below will randomly use one of your files.
If you want to adjust it to a specific month you can change overland-data
to something like overland-data-2018-12
following the overland-data-YYYY-MM
format. By default it uses 2019-06
as the data points
Now we can start downloading the data:
Now we can look into how our data looks like:
Now that we have our fitbit data stored in loc
we can start to work with that data. Much of this notebook is adapted code from Shirin Glander's excellent blogpost, which is based on Google Location History
data but the same principles apply for our Overland data.
Let's install the required ggmap
package and load some more data visualization tools:
We will start by looking at a map that will include all GPS points recorded for the data set you are looking at:
Below we define our boundaries that we want to plot by giving the minimum and maximum latitude/longitude of the map we want to see. By default we use the minimum/maximum values observed in our data.
Now that we have the map downloaded we can start plotting our own movements on that map:
Each location point is put on the map, with the color denoting the type of travel that Overland has tried to identify for the given movement. Let's now zoom in into a given part of the map. For this we can redownload a map with the coordinates that we want to use. You can adjust the boundaries in the cell below:
And now we can plot that data: