How to run this doc
kInputPath
below to point to your downloaded Fitbit archive.knitr::knit("rmd/my_overview.Rmd")
. To check the location of the doc, try:
system.file("rmd", "my_overview.Rmd", package = "FitbitAnalysis")
.knitr::opts_chunk$set(echo = TRUE)
options(warn = -1)
kInputPath <- "/path/to/MyFitbitData/FirstnameLastname/"
library(FitbitAnalysis) data <- suppressMessages(LoadFitbitData(kInputPath)) head(data)
Raw daily values of all metrics in the data, including a weekly moving average.
PlotMetrics(data)
This plot shows weekly data, which may show long-term trends more easily than daily values.
PlotWeeklyMetrics(data)
This plot highlights day-of-week patterns across all metrics.
PlotWeekdayMetrics(data)
This plot shows the distribution of beginning and end of sleep times.
PlotTimeAtRest(data)
This plot regresses minutes awake on the start hour of every night to highlight how the two are related.
PlotMinutesAwakeVsStartHour(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.