Helper function to plot images from "image tensors" data.frames. Designed to work with [mestrado::image_tensors_to_tbl].
1 2 3 4 5 6 7 8 9 10 11 12 |
image_tensor_tbl |
image tensor tibble. Usually a output from [mestrado::image_tensors_to_tbl]. |
nrow |
facet_wrap's nrow. |
ncol |
facet_wrap's ncol. |
x |
bare name. Column of coordinate X. |
y |
bare name. Column of coordinate Y. |
channels |
<tidy-select> columns of channels. It must select 3 or less columns (for R, G and B). If less than 3, channels will be recycled. |
label |
expr. Column or expression to put as title for each image. |
grid_tickness |
numeric. Tickness of the pixel grid. |
grid_colour |
character. Colour of the pixel grid. |
... |
arguments passed to facet_wrap. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.