-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated documents and vignette files
- Loading branch information
1 parent
5de8901
commit 41cc06b
Showing
6 changed files
with
149 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,25 @@ | ||
## ----load packages, message=FALSE, warning=FALSE------------------------- | ||
library(Moov) | ||
|
||
library(tidyverse) | ||
library(cowplot) | ||
|
||
## ----plot summary, fig.height=5, fig.width=7, warning=FALSE-------------- | ||
db_path <- "../private/Applications/moov.core/Library/Application Support/user_data/6234565289443328/user.db" | ||
|
||
swimming <- parse_swimming(read_moov(db_path)) | ||
|
||
plot_grid( | ||
plot_swim_summary(swimming, "distance_per_stroke") geom_smooth(method = "loess"), | ||
plot_swim_summary(swimming, "stroke_rate", ylim = NULL) geom_smooth(method = "loess"), | ||
plot_swim_summary(swimming, "distance_m", ylim = NULL), | ||
ncol = 1 | ||
) | ||
|
||
|
||
## ----plot swim binary, fig.height=2, fig.width=7, warning=FALSE---------- | ||
swimming_root <- "../private/Applications/moov.core/Library/Application Support/user_data/6234565289443328/swimming/" | ||
|
||
data <- read_moov_swim_bin("swimming-k5y5pqbib17vbjqrh9gr16e", swimming_root) | ||
plot_sensor_swim(data) | ||
|