show_cifar: Visualize CIFAR-10 image.

View source: R/cifar.R

show_cifarR Documentation

Visualize CIFAR-10 image.

Description

Display a CIFAR-10 image.

Usage

show_cifar(df, n, interpolate = FALSE)

Arguments

df

Data frame containing the CIFAR-10 dataframe.

n

Row index of the image to display.

interpolate

If TRUE, use linear interpolation to smooth the image. This can help when trying to confirm that you really are looking at a tiny image of a frog.

Examples

## Not run: 
# show the image at position 27001 (it's a plane)
show_cifar(cifar10, 27001)
# bit easier to see it's a plane
show_cifar(cifar10, 27001, interpolate = TRUE)

## End(Not run)

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