mark_stimuli | R Documentation |
Mark stimuli / treatment action over time with rectangles on the plot
mark_stimuli(gg, rectangles, colors, labels, orientation = "y")
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 |
ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.