We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c023bc0 commit a2530e3Copy full SHA for a2530e3
R/plot_daily.R
@@ -51,7 +51,7 @@ plot_daily <- function (data, maxd = 14, inter_gap = 15, tz = "") {
51
# === Get actual thresholds from HRR ===
52
HRR_info <- calculate_HRR(data, tz = tz)
53
54
- if (nrow(HRR_info) == 0 || any(is.na(HRR_info$RHR), is.na(HRR_info$HRR))) {
+ if (is.null(HRR_info)) {
55
message("Cannot compute daily heart rate plot: HRR thresholds (RHR/HRR) unavailable. Returning placeholder plot.")
56
return(
57
ggplot2::ggplot() +
0 commit comments