show_olivetti_face: Visualize Olivetti face.

View source: R/olivetti.R

show_olivetti_faceR Documentation

Visualize Olivetti face.

Description

Display an image from the Olivetti faces dataset.

Usage

show_olivetti_face(df, face, pose, col = grDevices::gray(1/12:1))

Arguments

df

Data frame containing the Olivetti faces.

face

Face index of the image to display. Must be an integer between 1 and 400.

pose

Pose index of the image to display. Must be an integer between 1 and 10.

col

List of colors to use in the display.


jlmelville/snedata documentation built on Jan. 13, 2024, 2:06 a.m.