click_ppg_editing: Server side function that enables manual addition and removal...

Description Usage Arguments

View source: R/utils_server.R

Description

Note that this function is mainly intended for use after imputing a section of PPG data. It can however be used in conjunction with the raw PPG signal. Results may not differ from those produced by the initial peak detection algorithm because the function leverages the same basic peak detection machinery \(see find_peaks\), albeit on a set of points closer to the peak manually identified by the user.

Usage

1
2
3
4
5
6
7
click_ppg_editing(
  input,
  click_id,
  dbl_click_id,
  valid_status = "edit",
  status_var = reactive({     TEMP_GRAPHICS_SETTINGS[["ppg_mode"]] })
)

Arguments

input

shiny internal

click_id

the click id used to perform point selection in the "main" editing plot on a given panel

dbl_click_id

the double click id used to perform point selection in the "main" editing plot on a given panel. This action is used to reset or "de-select" any points that were previously highlighted by the user.

valid_status

defaults to "click" - the other option is "drag" in terms of point selection

status_var

the reactiveValues that "track" whether the select_mode status is "drag" or "click"


dr-consulting/ibi_VizEdit documentation built on Jan. 1, 2021, 12:04 a.m.