plot_ecg: Plot a heartrate profile
Description
plot_ecg
plots a heat rate profile.
Usage
plot_ecg(data, max_points = 10000, interactive = FALSE)
Arguments
data
A data.frame with columns timestamp (POSIXct) and ecg (numeric)
max_points
Maximum number of points to decimate data
(10,000
by default)
interactive
Should the plot be interactive? FALSE by default.
Requires package "plotly".
Value
A ggplot object if not interactive, a plotly object otherwise.