draw_tem: Draw template

Description Usage Arguments Value Examples

View source: R/draw_tem.R

Description

Set alpha to 0 to omit lines or points.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
draw_tem(
  stimuli,
  pt.color = webmorph_options("pt.color"),
  pt.alpha = 0.75,
  pt.size = NULL,
  pt.shape = c("circle", "cross", "index"),
  line.color = webmorph_options("line.color"),
  line.alpha = 0.5,
  line.size = NULL,
  bg = "image"
)

Arguments

stimuli

list of class stimlist

pt.color, line.color

line or point color

pt.alpha, line.alpha

transparency (0-1), ignored if color is a hex value with transparency

pt.size, line.size

size in pixels (scales to image if NULL)

pt.shape

the shape of the points

bg

background color ("image" uses original image)

Value

stimlist with template images

Examples

1
demo_stim() %>% draw_tem() %>% plot()

facelab/webmorph documentation built on April 11, 2021, 6:34 a.m.