powered by
animate_hr produces a GIF of heart beats in (close to) real time.
animate_hr
animate_hr(ecg, beats, which_beats = NULL, big = FALSE)
A data.frame with columns timestamp (POSIXct) and ecg (numeric) (see read_ube)
read_ube
A data.frame with columns timestamp (POSIXct), ecg, period_s, freq_hz, and freq_bpm (see find_hr)
find_hr
Indices of the heart beats (in param beats) to be animated. If NULL (default), all beats will be animated.
beats
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
gif_image
# NOT RUN { animate_hr(ecg_bw190918_62R, beats_bw190918_62R, which_beats = 44:50, big = TRUE) # } # NOT RUN { # }
Run the code above in your browser using DataLab