Skip to content

kaybrodersen/FitbitAnalysis

Repository files navigation

FitbitAnalysis

R-CMD-check Codecov test coverage

Fitbit devices collect large amounts of sensor data. This package provides a few basic functions to help you start exploring your data in R.

Step 1: Installing the package

# install.packages("devtools")
devtools::install_github("kaybrodersen/FitbitAnalysis")

Step 2: Downloading your Fitbit data

  1. Navigate to fitbit.com.
  2. Log in and navigate to Profile > Data Export.
  3. Select 'Request Data'.
  4. Download your archive when ready.

Step 3: Exploring your data in R

library(FitbitAnalysis)
data <- LoadFitbitData("/path/to/MyFitbitData/FirstnameLastname/")

library(dplyr)
head(data)

PlotMetrics(data)
PlotMetrics(data %>% dplyr::select(date, VeryActiveMinutes))
PlotWeeklyMetrics(data)
PlotWeekdayMetrics(data)
PlotTimeAtRest(data)
PlotTimeAtRestCDF(data)
PlotMinutesAwakeVsStartHour(data)

To create an HTML of the outputs of all of the above functions, run the rmd/my_overview.Rmd markdown report that's included in the package.

About

Exploratory analysis of Fitbit sensor data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages