Description Usage Format Source Examples
GENEActive accelerometer data, collected from two Dutch persons living in the Amsterdam area, in a one-week period.
Data were collected between 2018-06-01 and 2018-06-08, at 30Hz, with a GENEactive wrist-worn accelerometer. Data were down-sampled to 3Hz.
1 |
A data frame with 14.753 observations on 4 variables:
id
Person id (integer)
timestamp
Datetime of measurement (POSIXct)
x
Acceleration on x-axis
y
Acceleration on y-axis
z
Acceleration on z-axis
light
Light sensor
temperature
Temperature in degrees Celcius
https://www.activinsights.com/actigraphy/geneactiv-original/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # number of samples
nrow(geneactiv)
# number of assessments, per person
table(geneactiv$id)
# plot one hour of raw data, of person 1
library(ggplot2)
library(tidyr)
d <- subset(geneactiv,
timestamp > "2018-06-01 13:00" &
timestamp < "2018-06-01 14:00" &
id == 1)
d <- gather(d,
key = "sensor", value = "value",
x, y, z, temperature, light)
ggplot(d, aes(timestamp, value)) +
geom_point(alpha = .3, shape = 16, size = .5) +
facet_grid(rows = vars(sensor) , scales = "free_y")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.