show_digit | R Documentation |
Plots an image of a grayscale grid representation of a digit.
show_digit(dat,
col = NULL,
...)
dat |
A |
col |
The colour scale to be used. Defaults to |
... |
Additional arguments to be passed to |
The desired image representation of the digit.
Keefe Murphy - <keefe.murphy@mu.ie>
USPSdigits
, show_IMIFA_digit
, mat2cols
, plot_cols
data(USPSdigits)
# Plot the first digit
show_digit(USPSdigits$train[1,-1])
# Visualise the overall mean
show_digit(colMeans(USPSdigits$train[,-1]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.