Here comes another option to analyze a TimeSpace-Track with R. A lattice cloud plots every recorded trackpoint into a 3d-time-space-cube. As the data (planar point pattern) is marked with the daytime, cluster of everyday routines become visible.
Here the direct comparison between a function of density and the time-space-cloud.
cloud(time_hours ~ PPP_selection$x * PPP_selection$y, data = daten, zlim = c(23,0), xlim = c(653000,643000), screen = list(z = 160, x = 120), panel.aspect = 0.75, xlab = “Longitude”, ylab = “Latitude”, zlab = “Time”, scales = list(z = list(arrows = FALSE, distance = 2), x = list(arrows =FALSE, distance = 2), y = list(arrows = FALSE, distande = 2)),)
This examle is inspired by: http://lmdvr.r-forge.r-project.org/ (Figure 6.2)
Beside the visualisation of TimeSpace Tracks, I’m trying to find a way to analyze GPX-Tracks with statistical software. This are the first results with R (The R Project for Statistical Computing):
^This graph is a result of the analysis with the package trip (Spatial analysis of animal track data). Unfortunatelly i’m do not understand witch scale is used by the package.
^Trackpoints as a function of density.
Since there is a trackpoint recorded every 10 sec., it is possible to interpretate the density of the trackpoints as time-spend.
This is a two day track. The highest peak in the right corner is my home (Nuremberg). The peaks in the backstage are both university in Erlangen. The path on the rigth side I did with my bicycle, the left one with the train.
But how to examine specific areas?
^1500 m arround my house in the city center.
With clickppp() from the spatstat package it’s possible to choose e.g. a point with the mouse:
####### Example Code:
plot(tripdata_utm) # plots the recorded trackpoints (converted to UTM)
P_center <- clickppp(n=1, win=Rect, add=TRUE, main=NULL, hook=NULL) # Select a point in the plot with the mouse
center <- as.data.frame(P_center)
D <- disc(radius = 1500, centre = c(center[,1], center[,2])) # create a disc window
P_selection <- ppp(tripdata_utm_num[,1], tripdata_utm_num[,2], window=D) # reduce the data with the window
^Another function of density (2D).
^Trackpoints as a function of time.
Here the trackpoints are divided by a grid and counted. Since the device records the position every 10 sec. The qqcount can be clearly interpreted as time-spend.
The next step is to add this data to a gis layer.
Visualisation of an Event (Bardentreffen) in Nuremberg.
This is an recent project about consumption and the categorization of consumers. The whole survey you can explore on: http://www.geographie.uni-erlangen.de/projects/konsum/ (german!).
For the evaluation, R was used.
“Der Verhaltensraum des Konsumenten – The Space of Consumer Behaviour”
The Space shows the consumer in the center of a two dimensional abstract space. He is able to “move” to every point in the coordinate system. Each buy he takes a new position. The first dimension is the dimension of hedonism (buying – shopping), the second is the dimension of autonomy. They are both independent. 31 test persons took part in the survey. They filled out a diary about their buys.
This is a sample person with 16 buys. The arrows indicate the direction of time, the circle grows for each buy at the same position.
This graph compares the buys of different people in the same category of shops.
It shows a clustering towards hedonism in fashion shops and a clustering towards buying in drugstores.
More on the project homepage.