View source: R/utils_helpers.R
build_matrix | R Documentation |
First round the vectors and then output binary matrix indicating which points are drawn (the pixels)
build_matrix(x, y)
x |
numeric vector with domain [1,28] / corresponding to the x axis of the box |
y |
numeric vector with domain [1,28] / corresponding to the y axis of the box |
a 28x28 matrix of 0 and 1
Emanuel Sommer
build_matrix(c(1, 1, 3.3, 5, 27.9), c(1, 1, 7.000012, 5.555, 28))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.