locations: locations

Description Usage Format Source See Also Examples

Description

Four-week Google location histories of two Dutch persons living in the Amsterdam area.

Usage

1

Format

A data frame with 14.753 observations on 4 variables:

id

Person id (integer)

timestamp

Datetime of measurement (POSIXct)

lat

Latitude (numeric)

lon

Longitude (numeric)

accuracy

Estimated GPS accuracy (in meters; smaller is better)

Source

https://takeout.google.com/settings/takeout/custom/location_history

See Also

get_google_location_data

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# number of assessments
nrow(locations)

# number of assessments, per person
table(locations$id)

library(ggplot2)
d <-  subset(locations,
             accuracy <= 100 &
             lon >=  4.80 & lon <=  5.00 &
             lat >= 52.25 & lat <= 52.50)

ggplot(d, aes(lon, lat)) +
  geom_point(alpha = .1,  shape = 21, size = 3) +
  facet_wrap(~ id)

jruwaard/emaph documentation built on May 3, 2019, 8:04 p.m.