Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A set of convenience functions in R for exploring iPhone and iPad location data
Python R
Latest commit f141532 @drewconway Revised README for v0.03
Failed to load latest commit information.
stalkR Revised README for v0.03
stalkR-manual.pdf Updated to version 0.03
stalkR_0.03.tar.gz Updated to version 0.03


stalkR is a set of simple convenience functions in R for exploring your iPhone or iPad location data

Last update: 2011-04-25


  • Removed dependency on R 2.13 list.dirs() function

  • Fixed bug on weird apostrophe's on my iDevice names


  • Added ChangeLog


As discovered by Alasdair Allan and Pete Warden (, iPhone and iPad devices have been silently recording the location of the device. This package contains three convenience functions for parsing the location data and visualizing it.


This package only works on Mac OS X, which is why I am not adding it to CRAN. Remember, this is is just for fun :)

Also, this was thrown together pretty fast, so please let me know when it breaks.


Download the stalkR_0.03.tar.gz file above, and run the following command in the R console:

> install.packages("stalkR_0.03.tar.gz", repos=NULL, type="source")

Remember: you must be in the same working directory as where you saved the source.


To run the code, you need only two bits of information:

  1. You user name on your computer. On Mac OS X this will be the directories listed under /Users/
  2. The name of the device you wish to explore, exactly as it appears in iTunes.

In my case, we can visualize my travel in Maryland, MD, USA with the following commands:

> library(stalkR)
> drews.locs<-get.mylocations("agconway", "Drew Conway's iPhone")
> viz.locations(drews.locs, "state", "maryland")

Maryland Travel

Something went wrong with that request. Please try again.