mark_stimuli: Mark stimuli / treatment action over time with rectangles on...

View source: R/plot.R

mark_stimuliR Documentation

Mark stimuli / treatment action over time with rectangles on the plot

Description

Mark stimuli / treatment action over time with rectangles on the plot

Usage

mark_stimuli(gg, rectangles, colors, labels, orientation = "y")

Arguments

gg

ggplot2 object

rectangles

List of rectangle datasets where every dataset is a dataframe of 4 rows describing the 4 corners of a rectangle. They represent the occurrence of a stimulus each#'

colors

Named character vector where values are colors and names are treatments. It establishes the color used to represent the treatments on the plot

labels

Character vector whose values become the name of the treatments as rendered in the plot's legend

Value

ggplot2 object


shaliulab/idocr documentation built on June 1, 2025, 4:59 p.m.