'Fitbit' Visualizations
Overview
Visualization of pre-downloaded 'Fitbit' personal health data using 'ggplot2' Visualizations, 'Leaflet' and 3-dimensional 'Rayshader' Maps. The 3-dimensional 'Rayshader' Map requires the installation of the 'CopernicusDEM' R package which includes the 30- and 90-meter elevation data.
- **Breaking change — Fitbit Web API dependency removed.** All functions that previously required a
user_idandtokenhave been refactored to accept pre-downloaded data directly, eliminating the dependency onhttr,jsonlite, andbase64enc. This change was driven by recurring Fitbit API policy changes (GitHub issues #4, #5, #7, #8, #11). - **Removed functions:**
base_url_request(),refresh_token_app(),extract_LOG_ID()— these were API-only helpers with no visualization logic. - **Refactored functions** (new first parameter accepts pre-downloaded data instead of API credentials):
heart_rate_time_series(heart_rate_intraday_list, heart_rate = NULL, ...)— accepts a named list of intraday data.tablesfitbit_data_type_by_date(data, type = 'spo2', ...)— accepts the parsed JSON response for that date/typesleep_single_day(sleep_data, date, ...)— accepts the parsed sleep API responsesleep_time_series(sleep_data_list, ...)— accepts a named list of per-date sleep responsesGPS_TCX_data(tcx_file, time_zone, ...)— accepts a path to an exported.tcxfile- **Sample data:** The
inst/tests_vignette_rds/folder ships.RDSfiles (heart_dat.RDS,sleep_ts.RDS,res_tcx.RDS) that illustrate the expected input structure for each refactored function. - Users who need the previous API-based version can install it with
remotes::install_github("mlampros/fitbitViz@v1.0.7")or from the CRAN archive athttps://cran.r-project.org/src/contrib/Archive/fitbitViz/fitbitViz_1.0.7.tar.gz.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK12 OK2026-04-25
Show 1 earlier changeHide 1 earlier change
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 18 (6 internal)
- Examples that run
- 0%12 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 17%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 23
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Issues over time
PRs over time
8 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/mlampros/fitbitviz on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Funding links: GitHub Sponsors
The repository owner accepts GitHub Sponsors
GitHub Pages site last deployed 2026-04-27 · The repository has a site deploy workflow
pkgdown site last built 2026-04-27
Dependencies
Installing fitbitViz adds 82 packages (44 with compiled code, 92 MB of source tarballs). Heaviest: stringi 11 MB, sf 9.3 MB, ggplot2 6.0 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 1.0.8Latest
- RR 4.6.0 released · 2026-04-24
- 1.0.72025-06-21 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.0.62024-02-08 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.0.5
- RR 4.2.0 released · 2022-04-22
- 1.0.42022-03-07 · diff ↗
- 1.0.32022-02-14 · diff ↗
- 1.0.22021-06-30 · diff ↗
- 1.0.12021-05-20 · diff ↗
- 1.0.02021-05-18
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2021-05-18
- Total releases
- 9 / 5 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.5
- Download size
- 3.0 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("fitbitViz")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.