Description Usage Arguments Details Value Examples
View source: R/basicPlotting.R
ggDigit
plots a single mnist digit with ggplot.
1 | ggDigit(digit, trueLab, predLab)
|
digit |
A single row from the mnist dataset, i.e. a
1 by 784 vector. This can e.g. be the first digit from the
mnist dataset |
trueLab |
The true label of the digit. Can be a factor or character. |
predLab |
The predicted label, e.g. from a classifier. Can be a factor or character. |
This functions returns a ggplot object of a single digit. The goal is to keep the plot as minimal as possible, only showing the true digit information. Additional parameters are given to create a title with the digit label and a predicted label.
Return a ggplot object of the digit.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.