show_digit {IMIFA} | R Documentation |
Show image of grayscale grid
Description
Plots an image of a grayscale grid representation of a digit.
Usage
show_digit(dat,
col = NULL,
...)
Arguments
dat |
A |
col |
The colour scale to be used. Defaults to |
... |
Additional arguments to be passed to |
Value
The desired image representation of the digit.
Author(s)
Keefe Murphy - <keefe.murphy@mu.ie>
See Also
USPSdigits
, show_IMIFA_digit
, mat2cols
, plot_cols
Examples
data(USPSdigits)
# Plot the first digit
show_digit(USPSdigits$train[1,-1])
# Visualise the overall mean
show_digit(colMeans(USPSdigits$train[,-1]))
[Package IMIFA version 2.2.0 Index]