display_lineup: Display Lineup as Image Grid

View source: R/visualization_faces.R

display_lineupR Documentation

Display Lineup as Image Grid

Description

Creates a visual display of the lineup faces arranged in a grid.

Usage

display_lineup(
  target_path,
  foil_paths,
  ncol = 3,
  scale = 150,
  show_labels = TRUE,
  highlight_target = TRUE
)

Arguments

target_path

Path to target image.

foil_paths

Paths to foil images.

ncol

Number of columns in the grid.

scale

Scale factor for images.

show_labels

Logical. Add labels under each face.

highlight_target

Logical. Add border around target.

Value

A magick image object that can be displayed or saved.

Examples

## Not run: 
# Display lineup
img <- display_lineup("target.jpg", paste0("foil", 1:5, ".jpg"))
print(img)

# Save to file
magick::image_write(img, "lineup_display.png")

## End(Not run)


r4lineups documentation built on Nov. 10, 2026, 1:08 a.m.