Description Usage Arguments Value Examples
animate_hr
produces a GIF of heart beats in (close to) real time.
1 | animate_hr(ecg, beats, which_beats = NULL, big = FALSE)
|
ecg |
A data.frame with columns timestamp (POSIXct) and ecg (numeric)
(see |
beats |
A data.frame with columns timestamp (POSIXct), ecg, period_s,
freq_hz, and freq_bpm (see |
which_beats |
Indices of the heart beats (in param |
big |
If FALSE (default) then throw an error if the animation will last more than 20s. This prevents R from crashing if it tries to animate too much. |
A gif_image
object
1 | animate_hr(ecg_bw190918_62R, beats_bw190918_62R, which_beats = 44:50, big = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.