add_task_v_lines: Internal utility for modifying gui plot

Description Usage Arguments

View source: R/utils_graphing.R

Description

add_task_v_lines adds vertical lines that delineate the timing boundaries of tasks/conditions defined in the timing file

Usage

1
2
3
4
5
6
7
add_task_v_lines(
  base_plot = NULL,
  timing_data = NULL,
  time_col = "Time",
  task_col = "Task",
  label_color = IBI_POINT_COLORS["original"]
)

Arguments

base_plot

is a ggplot2 object, typically generated by generate_base_gui_plot

timing_data

is a data.frame that contains time stamps for the start and stop of different tasks/conditions

time_col

is of type character and is the column name in the timing_data that contains start/stop time stamps

task_col

is of type character and is the column name in the timing_data that contains task/condition names

label_color

hexidecimal code for label used in conjunction with the vertical lines. Defaults to the standard "original" color


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