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.
Value
stimlist with labelled images
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")