| resize | R Documentation |
Resize images and templates to the specified width and height.
resize(stimuli, width = NULL, height = NULL)
stimuli |
list of stimuli |
width, height |
new dimensions (in pixels or percent if < 10) |
list of stimuli with resized tems and/or images
Stimulus manipulation functions
align(),
crop_tem(),
crop(),
greyscale(),
horiz_eyes(),
image_func(),
mask_oval(),
mask(),
mirror(),
pad(),
rotate(),
to_size()
stimuli <- demo_stim() # set width to proportion, height proportional resize(stimuli, .5) |> draw_tem() # set width and height separately by pixels resize(stimuli, 400, 250) |> draw_tem()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.