View source: R/visualization_faces.R
| display_lineup | R Documentation |
Creates a visual display of the lineup faces arranged in a grid.
display_lineup(
target_path,
foil_paths,
ncol = 3,
scale = 150,
show_labels = TRUE,
highlight_target = TRUE
)
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. |
A magick image object that can be displayed or saved.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.