Draws a plot of the resultant acceleration in epochs of window2
size
marking the non-wear time detected by each stage of the non-wear detection
algorithm.
Arguments
- data
An
impactr_data
object, as obtained with read_acc().- window2
Window 2 size, in minutes, for the non-wear detection algorithm. Must be the same value as used by the
detect_nonwear()
function.- nonwear_stage1, nonwear_stage2
A numeric vector containing the binary non-wear classification (0 is wear and 1 is non-wear) of each algorithm's stage per
window2
blocks as obtained with the detect_nonwear() function.- save_plot
Indicates whether of not to save the plot to visualize the detected non-wear periods to a pdf file. Provide a valid path to a file ending with the ".pdf" extension as a character string if you want the plot to be saved.
Details
This is an internal function, designed to be used inside the wrapper function remove_nonwear() that integrates all steps of detection, removal and inspection of accelerometer non-wear time.