xx <- samples(SECS);
yy <- 100*smooth(samples(POWER), sma, backward, 81)/MMP6m;
yy <- yy[x>0];
xx <- xx[yy[i] > 0 ];
which works perfectly fine (only i can't the x-axis to show hh:mm:ss rather than seconds)
I can't use the same approach for HRR% because (luckily) my heartrate is never zero.
How can i cut out the zero-power section of the ride from the heartrate curve?
Thanks
Juergen
Hi Ale,i would like to remove the coffee break period (POWER = 0) from my user chart showing three curves: MPP6m% vs HRR% vs MPP6m%/HRR%.For the MPP6M% curve i usexx <- samples(SECS);
yy <- 100*smooth(samples(POWER), sma, backward, 81)/MMP6m;
yy <- yy[x>0];
xx <- xx[yy[i] > 0 ];
which works perfectly fine (only i can't the x-axis to show hh:mm:ss rather than seconds)
I can't use the same approach for HRR% because (luckily) my heartrate is never zero.
How can i cut out the zero-power section of the ride from the heartrate curve?