PlotRejects: PlotRejects

View source: R/PulseWaveform.R

PlotRejectsR Documentation

PlotRejects

Description

PlotRejects takes a list of the output list 'reject' from the sep_beats function and consutructs an R plot indicating the number of rejects within a given samples, colour coded to indicate specific reasons for rejection. The function can be used as a tool to assess how conservative the sep_beats function is behaving for a given sample such that appropriate adjustments to empirical thresholds can be altered if necessary. Initially written to work within the ISO study main script.

Usage

PlotRejects(rejected_waves_list1, rejected_waves_list3)

Arguments

rejected_waves_list1

a list of number of beats rejected for each reason, for a given sample, nested within a list of samples (participants in ISO study)

rejected_waves_list3

equivalent data structure to rejected_waves_list1 but for a different category of sample (e.g dose level in ISO study) (optional)

Value

Automatically plots when called.

Note

The code for this function is inefficient and, while functioning, will need cleaning up for future releases.

Reasons for beat rejection include 1. excessively long waveforms (dotted), 2. excessively short waveforms (red), 3. bi-peaked waveforms (blue), 4. waveforms that begin to enter a second systolic upstroke (green), 5. waveforms that drop significantly below baseline (orange), 6. waveforms with significant variability in relation to the average (brown), 7. waveforms that are significantly different in morphology than the average (purple), and total number of rejected beats (black))

Examples

PlotRejects(rejected_waves_list1, rejected_waves_list3)











stw32/PulseWaveform documentation built on Dec. 6, 2022, 2:50 a.m.