Creates a visualization of heart rate variability (HRV) data from a FIT file. The plot can display either heart rate (HR) or RR interval data, with annotations showing key metrics.

hrv_plot(file_path, base = "HR")

Arguments

file_path

Path to the FIT file to process

base

Character indicating the type of data to plot:

  • "HR": Heart rate data

  • "RR": RR interval data

Value

A ggplot2 plot object