Skip to contents

Defaults to mlabel() unless you use arguments specific to gglabel(). All arguments are vectorised over the stimuli and values are recycled or truncated if there are fewer or more than stimuli.

Usage

label(stimuli, ...)

Arguments

stimuli

list of stimuli

...

arguments to pass on to mlabel() or gglabel()

Value

stimlist with labelled images

See also

Examples

stimuli <- demo_stim()

# label with magick::image_annotate
label(stimuli, 
      text = c("CHINWE", "GEORGE"), 
      gravity = c("north", "south"),
      color = "red")


# label with ggplot2::annotate
label(stimuli,
      label = c("CHINWE", "GEORGE"), 
      x = 0.5, 
      y = c(0.99, 0.02),
      vjust = c(1, 0), 
      size = 18,
      color = "red")